json_ne

Function json_ne 

Source
pub fn json_ne<'a, L, R>(left: L, field: &'a str, value: R) -> SQLiteSQL<'a>
where L: ToSQL<'a, SQLiteValue<'a>>, R: Into<SQLiteValue<'a>> + ToSQL<'a, SQLiteValue<'a>>,
Expand description

Create a JSON field inequality condition

ยงExample

let column = SQL::<SQLiteValue>::raw("metadata");
let condition = json_ne(column, "theme", "light");
assert_eq!(condition.sql(), "metadata ->>'theme' != ?");