Liking cljdoc? Tell your friends :D

sql-file.sql-util


columnar-resultclj

(columnar-result query-result)

Return a sequence consisting of the values from a result set composed of scalar (single column) rows.

Return a sequence consisting of the values from a result set composed
of scalar (single column) rows.
sourceraw docstring

query-allclj

(query-all db-connection query-spec)

Query, returning a sequence of all rows in a given result set.

Query, returning a sequence of all rows in a given result set.
sourceraw docstring

query-columnclj

(query-column db-connection query-spec)

Issue a query for a result set containing a single column and return a sequence of those values.

Issue a query for a result set containing a single column and return
a sequence of those values.
sourceraw docstring

query-firstclj

(query-first db-connection query-spec)

Issue a query and return the first row of the result set, or nil if the result set is empty.

Issue a query and return the first row of the result set, or nil if
the result set is empty.
sourceraw docstring

query-scalarclj

(query-scalar db-connection query-spec)
(query-scalar db-connection query-spec default)

Issue a database query and return the scalar result, if there is one. Return the specified default otherwise.

Issue a database query and return the scalar result, if there is
one. Return the specified default otherwise.
sourceraw docstring

query-scalar-requiredclj

(query-scalar-required db-connection query-spec)

Issue a database query and return the scalar result if there is one. Throws an exception in the event the query does not return a result.

Issue a database query and return the scalar result if there is
one. Throws an exception in the event the query does not return a
result.
sourceraw docstring

scalar-resultclj

(scalar-result query-result)
(scalar-result query-result default)

Return a scalar value from the given query result set, or the default value if the result set is empty. This can return nil in the event the result set contains a row, but the column value is null.

Return a scalar value from the given query result set, or the default
value if the result set is empty. This can return nil in the event
the result set contains a row, but the column value is null.
sourceraw docstring

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

× close