Function diesel_full_text_search::to_tsquery

source ยท
pub fn to_tsquery<x>(x: x) -> to_tsquery<x>
where x: AsExpression<Text>,
Examples found in repository?
examples/simple.rs (line 19)
16
17
18
19
20
21
22
23
24
fn main() {
    let search = "bar";

    let query = foo::table.filter(to_tsvector(foo::description).matches(to_tsquery(search)));

    let sql = debug_query::<DB, _>(&query).to_string();

    println!("The sql code for `query` is:\n  {sql}\n");
}