Liking cljdoc? Tell your friends :D

zodiac.ext.sql


countclj

(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. 
sourceraw docstring

database-url->jdbcUrlclj

(database-url->jdbcUrl db-url)

Parse a database url into a jdbc url

Parse a database url into a jdbc url
sourceraw docstring

execute!clj

(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.
sourceraw docstring

execute-one!clj

(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.
sourceraw docstring

exists?clj

(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.
sourceraw docstring

initclj

(init {:keys [spec context-key jdbc-options]
       :or {context-key :zodiac.ext.sql/db}
       :as _options})
source

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

× close