Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 792 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 792 Bytes

diesel_full_text_search

crates.io docs

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.

Example Usage

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.