(count db stmt)(count db stmt opts)Wrap a HoneySQL statement in a select count(...)
Returns true or false.
Wrap a HoneySQL statement in a `select count(...)` Returns true or false.
(database-url->jdbcUrl db-url)Parse a database url into a jdbc url.
This function isn't exhaustive and probably won't work for more exotic JDBC URLs.
Parse a database url into a jdbc url. This function isn't exhaustive and probably won't work for more exotic JDBC URLs.
(execute! db stmt)(execute! db stmt opts)Execute a SQL statement. The stmt can either be a SQL vector or a HoneySQL map statement.
Returns a sequence of maps.
Execute a SQL statement. The stmt can either be a SQL vector or a HoneySQL map statement. Returns a sequence of maps.
(execute-one! db stmt)(execute-one! db stmt opts)Execute a SQL statement. The stmt can either be a SQL vector or a HoneySQL map statement.
Returns a single result as a map.
Execute a SQL statement. The stmt can either be a SQL vector or a HoneySQL map statement. Returns a single result as a map.
(exists? db stmt)(exists? db stmt opts)Wrap a HoneySQL statement in a select exists(...)
Returns true or false.
Wrap a HoneySQL statement in a `select exists(...)` Returns true or false.
(init {:keys [spec context-key jdbc-options]
:or {context-key :zodiac.ext.sql/db}
:as _options})cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |