fn not_ilike<T>(self, other: T) -> dsl::NotILike<Self, T>
    where
        T: AsExpression<Text>,
    {
        Grouped(NotILike::new(self, other.as_expression()))
    }
/// Creates a PostgreSQL `NOT ILIKE` expression
///
/// # Example
///
/// ```rust
/// # include!("../../doctest_setup.rs");
/// #
/// # fn main() {
/// #     run_test().unwrap();
/// # }
/// #
/// # fn run_test() -> QueryResult<()> {
/// #     use schema::animals::dsl::*;
/// #     let connection = &mut establish_connection();
/// let doesnt_start_with_s = animals
///     .select(species)
///     .filter(name.not_ilike("s%").and(species.not_ilike("s%")))
///     .get_results::<String>(connection)?;
/// assert_eq!(vec!["dog"], doesnt_start_with_s);
/// #     Ok(())
/// # }
/// ```
Creates a PostgreSQL `NOT ILIKE` expression
Creates a PostgreSQL ` NOT ILIKE ` expression
fn not_ilike<T>(self, other: T) -> dsl::NotILike<Self, T>
    where
        T: AsExpression<Text>,
    {
        Grouped(NotILike::new(self, other.as_expression()))
    }
fn not_ilike < T > ( self , other : T ) -> dsl :: NotILike < Self , T > where T : AsExpression < Text > , { Grouped ( NotILike :: new ( self , other . as_expression ( ) ) ) }
Creates a PostgreSQL `NOT ILIKE` expression
Creates a PostgreSQL ` NOT ILIKE ` expression
self
other
T
self
other
T
example
None
include!("../../doctest_setup.rs");
None
fn main() {
None
run_test().unwrap();
None
}
None
fn run_test() -> queryresult<()> {
None
use schema::animals::dsl::*;
None
let connection = &mut establish_connection();
let doesnt_start_with_s = animals
.select(species)
.filter(name.not_ilike("s%").and(species.not_ilike("s%")))
.get_results::(connection)?;
assert_eq!(vec!["dog"], doesnt_start_with_s).
let doesnt_start_with_s = animals . select ( species ) . filter ( name . not_ilike ( " s% " ) . and ( species . not_ilike ( " s% " ))) . get_results :: ( connection ) ? ; assert_eq! ( vec! [ " dog " ] doesnt_start_with_s ) .
ok(())
None
}
None