Skip to content

The H2 dialect extension for HoneySQL library

License

Notifications You must be signed in to change notification settings

updcon/honeysql-h2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

honeysql-h2

Example

(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]

License

© 2022 UPD Consulting Ltd

Distributed under the MIT license.