pub fn json_eq<'a, L, R>(
left: L,
field: &'a str,
value: R,
) -> SQL<'a, SQLiteValue<'a>>Expand description
Create a JSON field equality condition using SQLite ->> operator
ยงExample
let column = SQL::<SQLiteValue>::raw("metadata");
let condition = json_eq(column, "theme", "dark");
assert_eq!(condition.sql(), "metadata ->> ? = ?");