cake/query/where
Used to build WHERE
clauses for SQL queries.
Where clauses are used to filter rows in a table.
Also used to build HAVING
clauses for SQL queries, because they work the
same way as WHERE
clauses, but are used to filter rows after GROUP BY
has been applied.
Compatibility
- SQLite does not support
ANY
,ALL
andSIMILAR TO
.
Functions
pub fn between(
value_a vl_a: WhereValue,
value_b vl_b: WhereValue,
value_c vl_c: WhereValue,
) -> Where
pub fn eq_all_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn eq_any_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn exists_in_query(sub_query qry: Query) -> Where
pub fn fragment_value(fragment frgmt: Fragment) -> WhereValue
pub fn gt_all_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn gt_any_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn gte_all_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn gte_any_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn ilike(
value vl: WhereValue,
pattern pttrn: String,
) -> Where
ILIKE
is the same as LIKE
but case-insensitive.
pub fn is_not_bool(value vl: WhereValue, bool b: Bool) -> Where
pub fn is_not_null(value vl: WhereValue) -> Where
pub fn lt_all_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn lt_any_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn lte_all_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn lte_any_query(
value vl: WhereValue,
sub_query qry: Query,
) -> Where
NOTICE: Not supported by SQLite.
pub fn similar_to(
value vl: WhereValue,
to pttrn: String,
) -> Where
NOTICE: Not supported by SQLite.