(require '[honeysql-h2.core :refer :all])
(upsert [{:aa 11 :bb 22}] :table)
;; ["MERGE INTO table (aa, bb) VALUES (?, ?)" 11 22]
(upsert [{:aa 11 :bb 22}] :table :aa)
;; ["MERGE INTO table (aa, bb) KEY(aa) VALUES (?, ?)" 11 22]
(upsert [{:aa 11 :bb 22}] :table [:p :s])
;; ["MERGE INTO table (aa, bb) KEY(p,s) VALUES (?, ?)" 11 22]
-
-
Notifications
You must be signed in to change notification settings - Fork 0
The H2 dialect extension for HoneySQL library
License
updcon/honeysql-h2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
The H2 dialect extension for HoneySQL library
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published