pub trait TsVectorExtensions: Expression<SqlType = TsVector> + Sized {
    // Provided methods
    fn matches<T: AsExpression<TsQuery>>(
        self,
        other: T
    ) -> Matches<Self, T::Expression> { ... }
    fn concat<T: AsExpression<TsVector>>(
        self,
        other: T
    ) -> Concat<Self, T::Expression> { ... }
}

Provided Methods§

source

fn matches<T: AsExpression<TsQuery>>( self, other: T ) -> Matches<Self, T::Expression>

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");
}
source

fn concat<T: AsExpression<TsVector>>( self, other: T ) -> Concat<Self, T::Expression>

Object Safety§

This trait is not object safe.

Implementors§