Closed Weakky closed 2 years ago
Needed for https://github.com/prisma/prisma-engines/pull/3088
BREAKING:
.like
.not_like
<left> LIKE <right>
.like(format!("%{}%", Value::text(...))
.begins_with
.like(format!("{}%", Value::text(...))
.ends_into
.like(format!("%{}", Value::text(...))
New functions:
concat()
json_unquote()
New comparable:
.json_type_not_equals()
.all()
.any()
General improvements:
JsonType::ColumnRef
json_type(col) = json_type(col)
Nice work. Don't merge this to main until we are ready to merge the matching QE work.
Overview
Needed for https://github.com/prisma/prisma-engines/pull/3088
BREAKING:
.like
and.not_like
now only renders<left> LIKE <right>
. The consequence is:.like
should now be expressed as.like(format!("%{}%", Value::text(...))
.begins_with
should now be expressed as.like(format!("{}%", Value::text(...))
.ends_into
should now be expressed as.like(format!("%{}", Value::text(...))
.like
and.not_like
can now reference other columns.New functions:
concat()
json_unquote()
(Postgres & MySQL ONLY)New comparable:
.json_type_not_equals()
(Postgres & MySQL ONLY).all()
(Postgres ONLY).any()
(Postgres ONLY)General improvements:
JsonType::ColumnRef
to enable expressingjson_type(col) = json_type(col)