Liking cljdoc? Tell your friends :D

utility-belt.sql.helpers


executeclj

(execute connection statement)
(execute connection statement {:keys [mode]})
source

transaction?clj

(transaction? tx-or-conn)

Detects if passed in data source is a transaction or not. NOTE: this only works with HikariCP managed connections/transactions and the connection pool defined in utility-belt.sql.component.connection-pool

Detects if passed in data source is a transaction or not.
NOTE: this only works with HikariCP managed connections/transactions and the connection pool
defined in utility-belt.sql.component.connection-pool
sourceraw docstring

with-transactioncljmacro

(with-transaction binding & body)

Wrapper around jdbc transaction macro. Cleans up imports so we always use ut.sql Suports the same options, eg. [tx conn] and [tx conn opts]

  • body.
Wrapper around jdbc transaction macro.   Cleans up imports so we always use ut.sql
Suports the same options, eg.
[tx conn]
and
[tx conn opts]
+ body.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close