json_exists

Function json_exists 

Source
pub fn json_exists<'a, L>(left: L, path: &'a str) -> SQLiteSQL<'a>
where L: ToSQL<'a, SQLiteValue<'a>>,
Expand description

Create a JSON field exists condition using json_type

ยงExample

let column = SQL::<SQLiteValue>::raw("metadata");
let condition = json_exists(column, "$.theme");
assert_eq!(condition.sql(), "json_type( metadata , '$.theme') IS NOT NULL");