0.8.12
Added If, IfNotNull, and IfNotNullOrEmpty functions.
It's now easier to write dynamic search conditions.
int? price = null;
var query = SelectQuery.Parse(sql)
.If(price != null, x => x.Equal(nameof(price), price));
💣Serialization feature has been removed
We have discontinued it for the time being as the maintenance costs are not justified.
Marked AddParameter as obsolete
We recommend using the parameter method.
Supports ANY function parsing
SELECT
s.unit_price * s.amount AS price
FROM
sale AS s
WHERE
s.unit_price * s.amount = ANY(:prices)
Add support for ESCAPE keyword in LIKE clause parsing
WITH users AS (
SELECT '30' as name
UNION ALL
SELECT '%30'
)
SELECT * FROM users WHERE name LIKE 'x%3%' escape 'x'