Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/updcon/honeysql-h2

The H2 dialect extension for HoneySQL library
https://github.com/updcon/honeysql-h2

clojure clojure-library h2 h2-database honeysql upsert

Last synced: 2 months ago
JSON representation

The H2 dialect extension for HoneySQL library

Awesome Lists containing this project

README

        

= honeysql-h2

== Example

[source,clojure]
----
(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.