pub struct UpdateStatement { /* private fields */ }Expand description
Update existing rows in the table
§Examples
use sql_builder::*;
let query = Query::update()
.table("glyph")
.values([("aspect", 1.23.into()), ("image", "123".into())])
.and_where(Expr::col("id").eq(1))
.to_owned();
assert_eq!(
query.to_string(MysqlQueryBuilder).unwrap(),
r#"UPDATE `glyph` SET `aspect` = 1.23, `image` = '123' WHERE `id` = 1"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 1.23, "image" = '123' WHERE "id" = 1"#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 1.23, "image" = '123' WHERE "id" = 1"#
);Implementations§
Source§impl UpdateStatement
impl UpdateStatement
Sourcepub fn get_values(&self) -> &[(DynIden, Box<Expr>)]
pub fn get_values(&self) -> &[(DynIden, Box<Expr>)]
Get column values
Sourcepub fn get_where(&self) -> &ConditionHolder
pub fn get_where(&self) -> &ConditionHolder
Predicates, including their original logical chains.
Sourcepub fn get_orders(&self) -> &[OrderExpr]
pub fn get_orders(&self) -> &[OrderExpr]
Ordering used to choose rows.
Sourcepub fn get_with(&self) -> Option<&WithClause>
pub fn get_with(&self) -> Option<&WithClause>
Common table expressions attached to this update.
Source§impl UpdateStatement
impl UpdateStatement
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new UpdateStatement
pub fn take(&mut self) -> Self
Sourcepub fn table<T>(&mut self, tbl_ref: T) -> &mut Selfwhere
T: IntoTableRef,
pub fn table<T>(&mut self, tbl_ref: T) -> &mut Selfwhere
T: IntoTableRef,
Specify which table to update; see UpdateStatement::values for an
example.
Sourcepub fn from<R>(&mut self, tbl_ref: R) -> &mut Selfwhere
R: IntoTableRef,
pub fn from<R>(&mut self, tbl_ref: R) -> &mut Selfwhere
R: IntoTableRef,
Update using data from another table (UPDATE .. FROM ..).
§MySQL Notes
MySQL has no UPDATE .. FROM: it gets UPDATE .. JOIN .. ON <where>.
§Examples
use sql_builder::*;
let query = Query::update()
.table("glyph")
.value("tokens", Expr::column(("character", "character")))
.from("character")
.cond_where(
Expr::col(("glyph", "image"))
.eq(Expr::col(("character", "user_data"))),
)
.to_owned();
assert_eq!(
query.to_string(MysqlQueryBuilder).unwrap(),
"UPDATE `glyph` JOIN `character` ON `glyph`.`image` = `character`.`user_data` SET `glyph`.`tokens` = `character`.`character`"
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "tokens" = "character"."character" FROM "character" WHERE "glyph"."image" = "character"."user_data""#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "tokens" = "character"."character" FROM "character" WHERE "glyph"."image" = "character"."user_data""#
);Sourcepub fn values<T, I>(&mut self, values: I) -> &mut Self
pub fn values<T, I>(&mut self, values: I) -> &mut Self
Update column values. To set multiple column-value pairs at once.
§Examples
use sql_builder::*;
let query = Query::update()
.table("glyph")
.values([
("aspect", 2.1345.into()),
("image", "235m".into()),
])
.to_owned();
assert_eq!(
query.to_string(MysqlQueryBuilder).unwrap(),
r#"UPDATE `glyph` SET `aspect` = 2.1345, `image` = '235m'"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 2.1345, "image" = '235m'"#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 2.1345, "image" = '235m'"#
);Sourcepub fn value<C, T>(&mut self, col: C, value: T) -> &mut Self
pub fn value<C, T>(&mut self, col: C, value: T) -> &mut Self
Update column value by Expr.
§Examples
use sql_builder::*;
let query = Query::update()
.table("glyph")
.value("aspect", Expr::cust("60 * 24 * 24"))
.values([
("image", "24B0E11951B03B07F8300FD003983F03F0780060".into()),
])
.to_owned();
assert_eq!(
query.to_string(MysqlQueryBuilder).unwrap(),
r#"UPDATE `glyph` SET `aspect` = 60 * 24 * 24, `image` = '24B0E11951B03B07F8300FD003983F03F0780060'"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 60 * 24 * 24, "image" = '24B0E11951B03B07F8300FD003983F03F0780060'"#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 60 * 24 * 24, "image" = '24B0E11951B03B07F8300FD003983F03F0780060'"#
);
let query = Query::update()
.table("glyph")
.value("aspect", Expr::value(Value::Int(None)))
.to_owned();
assert_eq!(
query.to_string(MysqlQueryBuilder).unwrap(),
r#"UPDATE `glyph` SET `aspect` = NULL"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = NULL"#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = NULL"#
);Sourcepub fn limit(&mut self, limit: u64) -> &mut Self
pub fn limit(&mut self, limit: u64) -> &mut Self
Limit number of updated rows. PostgreSQL refuses to render a limit or an
order on an UPDATE.
Sourcepub fn returning(&mut self, returning: ReturningClause) -> &mut Self
pub fn returning(&mut self, returning: ReturningClause) -> &mut Self
RETURNING expressions.
MySQL has no RETURNING. MariaDB has it on an UPDATE from 13.0 and
for one table only, so one that joins from tables is a
RenderError; the builder does not know the
server’s version, and an earlier MariaDB refuses the statement.
§Examples
use sql_builder::*;
let query = Query::update()
.table("glyph")
.value("aspect", 2.1345)
.value("image", "235m")
.returning(Query::returning().columns(["id"]))
.to_owned();
assert_eq!(
query.to_string(MariaDbDialect).unwrap(),
r#"UPDATE `glyph` SET `aspect` = 2.1345, `image` = '235m' RETURNING `id`"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 2.1345, "image" = '235m' RETURNING "id""#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 2.1345, "image" = '235m' RETURNING "id""#
);Sourcepub fn returning_col<C>(&mut self, col: C) -> &mut Selfwhere
C: IntoColumnRef,
pub fn returning_col<C>(&mut self, col: C) -> &mut Selfwhere
C: IntoColumnRef,
RETURNING expressions for a column.
Where it renders: see returning.
§Examples
use sql_builder::*;
let query = Query::update()
.table("glyph")
.value("aspect", 2.1345)
.value("image", "235m")
.returning_col("id")
.to_owned();
assert_eq!(
query.to_string(MariaDbDialect).unwrap(),
r#"UPDATE `glyph` SET `aspect` = 2.1345, `image` = '235m' RETURNING `id`"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 2.1345, "image" = '235m' RETURNING "id""#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 2.1345, "image" = '235m' RETURNING "id""#
);Sourcepub fn returning_all(&mut self) -> &mut Self
pub fn returning_all(&mut self) -> &mut Self
RETURNING expressions all columns.
Where it renders: see returning.
§Examples
use sql_builder::*;
let query = Query::update()
.table("glyph")
.value("aspect", 2.1345)
.value("image", "235m")
.returning_all()
.to_owned();
assert_eq!(
query.to_string(MariaDbDialect).unwrap(),
r#"UPDATE `glyph` SET `aspect` = 2.1345, `image` = '235m' RETURNING *"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 2.1345, "image" = '235m' RETURNING *"#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"UPDATE "glyph" SET "aspect" = 2.1345, "image" = '235m' RETURNING *"#
);Sourcepub fn with(self, clause: WithClause) -> WithQuery
pub fn with(self, clause: WithClause) -> WithQuery
Create a WithQuery by specifying a WithClause to execute this query with.
§Examples
use sql_builder::{IntoCondition, IntoIden, *};
let select = SelectStatement::new()
.columns(["id"])
.from("glyph")
.and_where(Expr::col("image").like("0%"))
.to_owned();
let cte = CommonTableExpression::new()
.query(select)
.column("id")
.table_name("cte")
.to_owned();
let with_clause = WithClause::new().cte(cte).to_owned();
let update = UpdateStatement::new()
.table("glyph")
.and_where(Expr::col("id").in_subquery(SelectStatement::new().column("id").from("cte").to_owned()))
.value("aspect", Expr::cust("60 * 24 * 24"))
.to_owned();
let query = update.with(with_clause);
assert_eq!(
query.to_string(MysqlQueryBuilder).unwrap(),
r#"WITH `cte` (`id`) AS (SELECT `id` FROM `glyph` WHERE `image` LIKE '0%') UPDATE `glyph` SET `aspect` = 60 * 24 * 24 WHERE `id` IN (SELECT `id` FROM `cte`)"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"WITH "cte" ("id") AS (SELECT "id" FROM "glyph" WHERE "image" LIKE '0%') UPDATE "glyph" SET "aspect" = 60 * 24 * 24 WHERE "id" IN (SELECT "id" FROM "cte")"#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"WITH "cte" ("id") AS (SELECT "id" FROM "glyph" WHERE "image" LIKE '0%') UPDATE "glyph" SET "aspect" = 60 * 24 * 24 WHERE "id" IN (SELECT "id" FROM "cte")"#
);Sourcepub fn with_cte<C: Into<WithClause>>(&mut self, clause: C) -> &mut Self
pub fn with_cte<C: Into<WithClause>>(&mut self, clause: C) -> &mut Self
Create a Common Table Expression by specifying a CommonTableExpression or WithClause to execute this query with.
§Examples
use sql_builder::{IntoCondition, IntoIden, *};
let select = SelectStatement::new()
.columns(["id"])
.from("glyph")
.and_where(Expr::col("image").like("0%"))
.to_owned();
let cte = CommonTableExpression::new()
.query(select)
.column("id")
.table_name("cte")
.to_owned();
let with_clause = WithClause::new().cte(cte).to_owned();
let query = UpdateStatement::new()
.table("glyph")
.and_where(Expr::col("id").in_subquery(SelectStatement::new().column("id").from("cte").to_owned()))
.value("aspect", Expr::cust("60 * 24 * 24"))
.with_cte(with_clause)
.to_owned();
assert_eq!(
query.to_string(MysqlQueryBuilder).unwrap(),
r#"WITH `cte` (`id`) AS (SELECT `id` FROM `glyph` WHERE `image` LIKE '0%') UPDATE `glyph` SET `aspect` = 60 * 24 * 24 WHERE `id` IN (SELECT `id` FROM `cte`)"#
);
assert_eq!(
query.to_string(PostgresQueryBuilder).unwrap(),
r#"WITH "cte" ("id") AS (SELECT "id" FROM "glyph" WHERE "image" LIKE '0%') UPDATE "glyph" SET "aspect" = 60 * 24 * 24 WHERE "id" IN (SELECT "id" FROM "cte")"#
);
assert_eq!(
query.to_string(SqliteQueryBuilder).unwrap(),
r#"WITH "cte" ("id") AS (SELECT "id" FROM "glyph" WHERE "image" LIKE '0%') UPDATE "glyph" SET "aspect" = 60 * 24 * 24 WHERE "id" IN (SELECT "id" FROM "cte")"#
);Source§impl UpdateStatement
impl UpdateStatement
pub fn build_any( &self, query_builder: &impl QueryBuilder, ) -> Result<(String, Values), RenderError>
pub fn build_collect_any( &self, query_builder: &impl QueryBuilder, sql: &mut impl SqlWriter, ) -> Result<String, RenderError>
pub fn build_collect_any_into( &self, query_builder: &impl QueryBuilder, sql: &mut impl SqlWriter, ) -> Result<(), RenderError>
Source§impl UpdateStatement
impl UpdateStatement
pub fn to_string<T: QueryBuilder>( &self, query_builder: T, ) -> Result<String, RenderError>
pub fn build<T: QueryBuilder>( &self, query_builder: T, ) -> Result<(String, Values), RenderError>
pub fn build_collect<T: QueryBuilder>( &self, query_builder: T, sql: &mut impl SqlWriter, ) -> Result<String, RenderError>
pub fn build_collect_into<T: QueryBuilder>( &self, query_builder: T, sql: &mut impl SqlWriter, ) -> Result<(), RenderError>
Source§impl UpdateStatement
impl UpdateStatement
pub fn add_order_by(&mut self, order: OrderExpr) -> &mut Self
pub fn clear_order_by(&mut self) -> &mut Self
pub fn order_by<T: IntoColumnRef>(&mut self, col: T, order: Order) -> &mut Self
pub fn order_by_expr(&mut self, expr: Expr, order: Order) -> &mut Self
pub fn order_by_customs<I, T>(&mut self, cols: I) -> &mut Self
pub fn order_by_columns<I, T>(&mut self, cols: I) -> &mut Self
pub fn order_by_with_nulls<T: IntoColumnRef>( &mut self, col: T, order: Order, nulls: NullOrdering, ) -> &mut Self
pub fn order_by_expr_with_nulls( &mut self, expr: Expr, order: Order, nulls: NullOrdering, ) -> &mut Self
pub fn order_by_customs_with_nulls<I, T>(&mut self, cols: I) -> &mut Self
pub fn order_by_columns_with_nulls<I, T>(&mut self, cols: I) -> &mut Self
Source§impl UpdateStatement
impl UpdateStatement
pub fn and_where(&mut self, other: Expr) -> &mut Self
pub fn and_where_option(&mut self, other: Option<Expr>) -> &mut Self
pub fn and_or_where(&mut self, condition: LogicalChainOper) -> &mut Self
pub fn cond_where<C: IntoCondition>(&mut self, condition: C) -> &mut Self
Trait Implementations§
Source§impl Clone for UpdateStatement
impl Clone for UpdateStatement
Source§impl ConditionalStatement for UpdateStatement
impl ConditionalStatement for UpdateStatement
Source§fn cond_where<C>(&mut self, condition: C) -> &mut Selfwhere
C: IntoCondition,
fn cond_where<C>(&mut self, condition: C) -> &mut Selfwhere
C: IntoCondition,
any and all.
Calling cond_where multiple times will conjoin them.
Calling or_where after cond_where will panic. Read moreSource§impl Debug for UpdateStatement
impl Debug for UpdateStatement
Source§impl Default for UpdateStatement
impl Default for UpdateStatement
Source§impl From<UpdateStatement> for Expr
impl From<UpdateStatement> for Expr
Source§fn from(v: UpdateStatement) -> Self
fn from(v: UpdateStatement) -> Self
Source§impl From<UpdateStatement> for QueryStatement
impl From<UpdateStatement> for QueryStatement
Source§fn from(s: UpdateStatement) -> Self
fn from(s: UpdateStatement) -> Self
Source§impl From<UpdateStatement> for SubQueryStatement
impl From<UpdateStatement> for SubQueryStatement
Source§fn from(s: UpdateStatement) -> Self
fn from(s: UpdateStatement) -> Self
Source§impl OrderedStatement for UpdateStatement
impl OrderedStatement for UpdateStatement
Source§fn clear_order_by(&mut self) -> &mut Self
fn clear_order_by(&mut self) -> &mut Self
Source§fn order_by<T>(&mut self, col: T, order: Order) -> &mut Selfwhere
T: IntoColumnRef,
fn order_by<T>(&mut self, col: T, order: Order) -> &mut Selfwhere
T: IntoColumnRef,
Source§fn order_by_customs<I, T>(&mut self, cols: I) -> &mut Self
fn order_by_customs<I, T>(&mut self, cols: I) -> &mut Self
Source§fn order_by_columns<I, T>(&mut self, cols: I) -> &mut Self
fn order_by_columns<I, T>(&mut self, cols: I) -> &mut Self
Source§fn order_by_with_nulls<T>(
&mut self,
col: T,
order: Order,
nulls: NullOrdering,
) -> &mut Selfwhere
T: IntoColumnRef,
fn order_by_with_nulls<T>(
&mut self,
col: T,
order: Order,
nulls: NullOrdering,
) -> &mut Selfwhere
T: IntoColumnRef,
Source§fn order_by_expr_with_nulls(
&mut self,
expr: Expr,
order: Order,
nulls: NullOrdering,
) -> &mut Self
fn order_by_expr_with_nulls( &mut self, expr: Expr, order: Order, nulls: NullOrdering, ) -> &mut Self
Expr with nulls order option.Source§fn order_by_customs_with_nulls<I, T>(&mut self, cols: I) -> &mut Self
fn order_by_customs_with_nulls<I, T>(&mut self, cols: I) -> &mut Self
Source§fn order_by_columns_with_nulls<I, T>(&mut self, cols: I) -> &mut Self
fn order_by_columns_with_nulls<I, T>(&mut self, cols: I) -> &mut Self
Source§impl PartialEq for UpdateStatement
impl PartialEq for UpdateStatement
Source§impl QueryStatementBuilder for UpdateStatement
impl QueryStatementBuilder for UpdateStatement
Source§fn build_collect_any_into(
&self,
query_builder: &impl QueryBuilder,
sql: &mut impl SqlWriter,
) -> Result<(), RenderError>
fn build_collect_any_into( &self, query_builder: &impl QueryBuilder, sql: &mut impl SqlWriter, ) -> Result<(), RenderError>
sql, stopping at the first part that cannot be rendered.Source§fn build_any(
&self,
query_builder: &impl QueryBuilder,
) -> Result<(String, Values), RenderError>
fn build_any( &self, query_builder: &impl QueryBuilder, ) -> Result<(String, Values), RenderError>
Source§fn build_collect_any(
&self,
query_builder: &impl QueryBuilder,
sql: &mut impl SqlWriter,
) -> Result<String, RenderError>
fn build_collect_any( &self, query_builder: &impl QueryBuilder, sql: &mut impl SqlWriter, ) -> Result<String, RenderError>
fn into_sub_query_statement(self) -> SubQueryStatement
Source§impl QueryStatementWriter for UpdateStatement
impl QueryStatementWriter for UpdateStatement
Source§fn to_string<T: QueryBuilder>(
&self,
query_builder: T,
) -> Result<String, RenderError>
fn to_string<T: QueryBuilder>( &self, query_builder: T, ) -> Result<String, RenderError>
Source§fn build<T: QueryBuilder>(
&self,
query_builder: T,
) -> Result<(String, Values), RenderError>
fn build<T: QueryBuilder>( &self, query_builder: T, ) -> Result<(String, Values), RenderError>
Source§fn build_collect<T: QueryBuilder>(
&self,
query_builder: T,
sql: &mut impl SqlWriter,
) -> Result<String, RenderError>
fn build_collect<T: QueryBuilder>( &self, query_builder: T, sql: &mut impl SqlWriter, ) -> Result<String, RenderError>
Source§fn build_collect_into<T: QueryBuilder>(
&self,
query_builder: T,
sql: &mut impl SqlWriter,
) -> Result<(), RenderError>
fn build_collect_into<T: QueryBuilder>( &self, query_builder: T, sql: &mut impl SqlWriter, ) -> Result<(), RenderError>
sql, stopping at the first part that cannot be rendered.impl StructuralPartialEq for UpdateStatement
Auto Trait Implementations§
impl Forget for UpdateStatement
impl Freeze for UpdateStatement
impl Move for UpdateStatement
impl RefUnwindSafe for UpdateStatement
impl Send for UpdateStatement
impl Sync for UpdateStatement
impl Unpin for UpdateStatement
impl UnsafeUnpin for UpdateStatement
impl UnwindSafe for UpdateStatement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ExprTrait for T
impl<T> ExprTrait for T
Source§fn as_enum<N>(self, type_name: N) -> Exprwhere
N: IntoIden,
fn as_enum<N>(self, type_name: N) -> Exprwhere
N: IntoIden,
AS enum expression. Read moreSource§fn cast_as<N>(self, type_name: N) -> Exprwhere
N: IntoIden,
fn cast_as<N>(self, type_name: N) -> Exprwhere
N: IntoIden,
CAST AS expression. Read moreSource§fn count_distinct(self) -> Expr
fn count_distinct(self) -> Expr
COUNT function with the DISTINCT modifier. Read moreSource§fn equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
fn equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
Source§fn in_subquery(self, sel: SelectStatement) -> Expr
fn in_subquery(self, sel: SelectStatement) -> Expr
IN sub-query expression. Read moreSource§fn in_tuples<V, I>(self, v: I) -> Exprwhere
V: IntoValueTuple,
I: IntoIterator<Item = V>,
fn in_tuples<V, I>(self, v: I) -> Exprwhere
V: IntoValueTuple,
I: IntoIterator<Item = V>,
IN sub expression. Read moreSource§fn is_not_null(self) -> Expr
fn is_not_null(self) -> Expr
IS NOT NULL expression. Read moreSource§fn left_shift<R>(self, right: R) -> Expr
fn left_shift<R>(self, right: R) -> Expr
Source§fn not_between<A, B>(self, a: A, b: B) -> Expr
fn not_between<A, B>(self, a: A, b: B) -> Expr
NOT BETWEEN expression. Read moreSource§fn not_equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
fn not_equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
Source§fn not_in_subquery(self, sel: SelectStatement) -> Expr
fn not_in_subquery(self, sel: SelectStatement) -> Expr
NOT IN sub-query expression. Read moreSource§fn not_like<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
fn not_like<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
NOT LIKE expression. Read moreSource§fn right_shift<R>(self, right: R) -> Expr
fn right_shift<R>(self, right: R) -> Expr
Source§impl<T> PgExpr for Twhere
T: ExprTrait,
impl<T> PgExpr for Twhere
T: ExprTrait,
Source§fn concatenate<T>(self, right: T) -> Expr
fn concatenate<T>(self, right: T) -> Expr
||) expression. Read moreSource§fn matches<T>(self, expr: T) -> Expr
fn matches<T>(self, expr: T) -> Expr
@@) expression. Read moreSource§fn contains<T>(self, expr: T) -> Expr
fn contains<T>(self, expr: T) -> Expr
@>) expression. Read moreSource§fn contained<T>(self, expr: T) -> Expr
fn contained<T>(self, expr: T) -> Expr
<@) expression. Read moreSource§fn ilike<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
fn ilike<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
ILIKE expression. Read moreSource§fn not_ilike<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
fn not_ilike<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
NOT ILIKE expressionSource§fn get_json_field<T>(self, right: T) -> Expr
fn get_json_field<T>(self, right: T) -> Expr
->). Read moreSource§fn cast_json_field<T>(self, right: T) -> Expr
fn cast_json_field<T>(self, right: T) -> Expr
->>). Read more