Liking cljdoc? Tell your friends :D

datumbazo.driver.core


auto-commit?clj

(auto-commit? db)

Returns true if the current database connection is in auto commit mode, otherwise false.

Returns true if the current database connection is in auto commit
mode, otherwise false.
sourceraw docstring

commit!clj

(commit! db)

Commit the current database connection.

Commit the current database connection.
sourceraw docstring

connectclj

(connect db & [opts])

Connect to db using opts.

Connect to `db` using `opts`.
sourceraw docstring

Connectablecljprotocol

-connectclj

(-connect driver db opts)

-connectionclj

(-connection driver db)

-disconnectclj

(-disconnect driver db)
source

connected?clj

(connected? db)

Returns true if db is connected, otherwise false.

Returns true if `db` is connected, otherwise false.
sourceraw docstring

connectionclj

(connection db)

Return the current connection to db.

Return the current connection to `db`.
sourceraw docstring

disconnectclj

(disconnect db & [opts])

Disconnect from db.

Disconnect from `db`.
sourceraw docstring

drivercljmultimethod

Find the driver for db.

Find the driver for `db`.
sourceraw docstring

executeclj

(execute stmt & [opts])

Execute stmt against a database.

Execute `stmt` against a database.
sourceraw docstring

execute-sql-queryclj

(execute-sql-query db sql & [opts])

Execute a SQL query.

Execute a SQL query.
sourceraw docstring

execute-sql-statementclj

(execute-sql-statement db sql & [opts])

Execute a SQL statement.

Execute a SQL statement.
sourceraw docstring

Executeablecljprotocol

-execute-allclj

(-execute-all driver db sql opts)

-execute-oneclj

(-execute-one driver db sql opts)
source

load-driversclj

(load-drivers)

Load the driver namespaces.

Load the driver namespaces.
sourceraw docstring

Preparablecljprotocol

-prepareclj

(-prepare driver db sql opts)
source

prepareclj

(prepare db sql & [opts])

Return a prepared statement for sql.

Return a prepared statement for `sql`.
sourceraw docstring

release-savepoint!clj

(release-savepoint! db savepoint)
source

rollback!clj

(rollback! db & [savepoint])
source

row-countclj

(row-count result)

Normalize into a record, with the count of affected rows.

Normalize into a record, with the count of affected rows.
sourceraw docstring

savepoint?clj

(savepoint? x)

Return true if x is a java.sql.Savepoint, otherwise false.

Return true if `x` is a java.sql.Savepoint, otherwise false.
sourceraw docstring

set-auto-commit!clj

(set-auto-commit! db auto-commit)
source

set-savepoint!clj

(set-savepoint! db & [name])

Set a savepoint on the current connection.

Set a savepoint on the current connection.
sourceraw docstring

sql-strclj

(sql-str stmt)

Prepare stmt using the database and return the raw SQL as a string.

Prepare `stmt` using the database and return the raw SQL as a string.
sourceraw docstring

transactclj

(transact db f & [opts])

Run f within a database transaction on db.

Run `f` within a database transaction on `db`.
sourceraw docstring

Transactablecljprotocol

-transactclj

(-transact driver db f opts)
source

with-connectioncljmacro

(with-connection [db-sym db & [opts]] & body)

Open a database connection, bind the connected db to db-sym, evaluate body and close the connection again.

Open a database connection, bind the connected `db` to `db-sym`,
evaluate `body` and close the connection again.
sourceraw docstring

with-connection*clj

(with-connection* db f & [opts])

Open a database connection, call f with the connected db as argument and close the connection again.

Open a database connection, call `f` with the connected `db` as
argument and close the connection again.
sourceraw docstring

with-rollbackcljmacro

(with-rollback [db-sym db] & body)

Start a transaction, evaluate body and rollback.

Start a transaction, evaluate `body` and rollback.
sourceraw docstring

with-savepointcljmacro

(with-savepoint [db-sym db opts] & body)

Start a transaction, evaluate body and rollback.

Start a transaction, evaluate `body` and rollback.
sourceraw docstring

with-savepoint*clj

(with-savepoint* db f & [opts])
source

with-transactioncljmacro

(with-transaction [db-sym db & [opts]] & body)

Start a new db transaction, bind db to db-sym and evaluate body within the transaction.

Start a new `db` transaction, bind `db` to `db-sym` and evaluate
`body` within the transaction.
sourceraw docstring

with-transaction*clj

(with-transaction* db f & [opts])

Start a new db transaction call f with db as argument and commit the transaction. If f throws any exception the transaction gets rolled back.

Start a new `db` transaction call `f` with `db` as argument and
commit the transaction. If `f` throws any exception the transaction
gets rolled back.
sourceraw docstring

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

× close