Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/updcon/honeysql-h2
- Owner: updcon
- License: mit
- Created: 2022-05-21T16:26:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T15:54:45.000Z (about 1 year ago)
- Last Synced: 2024-11-28T13:09:24.931Z (3 months ago)
- Topics: clojure, clojure-library, h2, h2-database, honeysql, upsert
- Language: Clojure
- Homepage:
- Size: 14.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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.