(exec {query? :jdbc/query? :keys [db sql-str params] :as q})
Executes SQL CRUD operations using clojure.java.jdbc
Takes a map with two mandatory keys:
:db - DB spec or connection pool datasource
:sql-str - SQL string to execute
And two optional keys:
:params - Parameters to pass to jdbc
:jdbc/query? - If truthy, treat q
as a query. If set but falsey, don't.
Useful for literal SELECT statements introduced by a WITH
clause and certain PRAGMAs that look like queries but aren't.
The following are passed directly to jdbc/query or jdbc/execute!, respectively:
:as-arrays? :identifiers :keywordize? :qualifier :row-fn :result-set-fn
:multi? :transaction?
Executes SQL CRUD operations using clojure.java.jdbc Takes a map with two mandatory keys: :db - DB spec or connection pool datasource :sql-str - SQL string to execute And two optional keys: :params - Parameters to pass to jdbc :jdbc/query? - If truthy, treat `q` as a query. If set but falsey, don't. Useful for literal SELECT statements introduced by a WITH clause and certain PRAGMAs that look like queries but aren't. The following are passed directly to jdbc/query or jdbc/execute!, respectively: :as-arrays? :identifiers :keywordize? :qualifier :row-fn :result-set-fn :multi? :transaction?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close