Crates.io | diesel_full_text_search |
lib.rs | diesel_full_text_search |
version | 2.2.0 |
source | src |
created_at | 2016-04-15 15:50:59.713689 |
updated_at | 2024-05-31 09:20:47.860024 |
description | Adds support for PostgreSQL full text search to Diesel |
homepage | |
repository | https://github.com/diesel-rs/diesel_full_text_search |
max_upload_size | |
id | 4760 |
size | 18,683 |
Add support for Postgres full text search to diesel, the safe, extensible ORM and query builder for Rust.
This crate also serves as an example of how to extend diesel with database specific features outside of diesel itself as third party crate.
use diesel_full_text_search::*;
let search = "bar";
let query = foo::table.filter(to_tsvector(Foo::description).matches(to_tsquery(search)));
For complete examples, see /examples.