Skip to content

Commit

Permalink
Operator :jsonb/? added
Browse files Browse the repository at this point in the history
  • Loading branch information
skylightis666 committed Sep 13, 2024
1 parent 0f4502d commit 8836e9d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dsql/pg.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit 8836e9d

Please sign in to comment.