We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a041f4 commit 744a8a8Copy full SHA for 744a8a8
src/expr.rs
@@ -331,6 +331,18 @@ impl Expr {
331
/// r#"SELECT 'a' ? 'b'"#
332
/// );
333
/// ```
334
+ /// ```
335
+ /// use sea_query::{*, tests_cfg::*};
336
+ ///
337
+ /// let query = Query::select()
338
+ /// .expr(Expr::cust_with_values("data @?? (?::JSONPATH)", vec!["hello"]))
339
+ /// .to_owned();
340
341
+ /// assert_eq!(
342
+ /// query.to_string(PostgresQueryBuilder),
343
+ /// r#"SELECT data @? ('hello'::JSONPATH)"#
344
+ /// );
345
346
pub fn cust_with_values<V, I>(s: &str, v: I) -> SimpleExpr
347
where
348
V: Into<Value>,
0 commit comments