Liking cljdoc? Tell your friends :D

next.jdbc.defer

The idea behind the next.jdbc.defer namespace is to provide a way to defer the execution of a series of SQL statements until a later time, but still provide a way for inserted keys to be used in later SQL statements.

The principle is to provide a core subset of the next.jdbc and next.jdbc.sql API that produces a data structure that describes a series of SQL operations to be performed, that are held in a dynamic var, and that can be executed at a later time, in a transaction.

The idea behind the next.jdbc.defer namespace is to provide a
way to defer the execution of a series of SQL statements until
a later time, but still provide a way for inserted keys to be
used in later SQL statements.

The principle is to provide a core subset of the next.jdbc
and next.jdbc.sql API that produces a data structure that
describes a series of SQL operations to be performed, that
are held in a dynamic var, and that can be executed at a
later time, in a transaction.
raw docstring

defer-opsclj

(defer-ops f)
source

deferrableclj

(deferrable transactable stmts)
source

delete!clj

(delete! table where-params)
(delete! table where-params opts)

Given a table name, and either a hash map of columns and values to search on or a vector of a SQL where clause and parameters, defer a delete on the table.

Given a table name, and either a hash map of columns and values
to search on or a vector of a SQL where clause and parameters,
defer a delete on the table.
sourceraw docstring

execute-one!clj

(execute-one! sql-p)
(execute-one! sql-p opts)

Given a vector containing a SQL statement and parameters, defer execution of that statement.

Given a vector containing a SQL statement and parameters, defer
execution of that statement.
sourceraw docstring

insert!clj

(insert! table key-map)
(insert! table key-map opts)

Given a table name, and a data hash map, defer an insertion of the data as a single row in the database.

Given a table name, and a data hash map, defer an insertion of the
data as a single row in the database.
sourceraw docstring

update!clj

(update! table key-map where-params)
(update! table key-map where-params opts)

Given a table name, a hash map of columns and values to set, and either a hash map of columns and values to search on or a vector of a SQL where clause and parameters, defer an update on the table.

Given a table name, a hash map of columns and values to set, and
either a hash map of columns and values to search on or a vector
of a SQL where clause and parameters, defer an update on the table.
sourceraw docstring

with-deferredcljmacro

(with-deferred connectable & body)
source

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

× close