pub fn to_tsquery<x>(x: x) -> to_tsquery<x>where x: AsExpression<Text>,
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"); }