diff --git a/src/dsql/pg.clj b/src/dsql/pg.clj index fbb12e1..03d3ba0 100644 --- a/src/dsql/pg.clj +++ b/src/dsql/pg.clj @@ -698,6 +698,14 @@ (:pg/sub-select m) :pg/sub-select :else nil))) +(defmethod ql/to-sql + :jsonb/? + [acc opts [_ l r]] + (-> acc + (ql/to-sql opts l) + (conj "??") + (ql/to-sql opts r))) + (defmethod ql/to-sql :jsonb/-> [acc opts [_ col k]]