Liking cljdoc? Tell your friends :D

datumbazo.driver.core


beginclj

(begin db & [opts])

Begin a new db transaction.

Begin a new `db` transaction.
sourceraw docstring

commitclj

(commit db & [opts])

Commit the current db transaction.

Commit the current `db` transaction.
sourceraw docstring

connectclj

(connect db & [opts])

Connect to db using opts.

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

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

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

find-drivercljmultimethod

Find the driver for db.

Find the driver for `db`.
sourceraw docstring

IConnectioncljprotocol

-connectclj

(-connect driver db opts)

-connectionclj

(-connection driver db)

-disconnectclj

(-disconnect driver db)
source

IExecutecljprotocol

-executeclj

(-execute driver db sql opts)
source

IFetchcljprotocol

-fetchclj

(-fetch driver db sql opts)
source

IPrepareStatementcljprotocol

-prepare-statementclj

(-prepare-statement driver db sql opts)
source

ITransactioncljprotocol

-beginclj

(-begin driver db opts)

-commitclj

(-commit driver db opts)

-rollbackclj

(-rollback driver db opts)
source

load-driversclj

(load-drivers)

Load the driver namespaces.

Load the driver namespaces.
sourceraw docstring

prepare-statementclj

(prepare-statement db sql & [opts])

Return a prepared statement for sql.

Return a prepared statement for `sql`.
sourceraw docstring

rollbackclj

(rollback db & [opts])

Rollback the current db transaction.

Rollback the current `db` transaction.
sourceraw docstring

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

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

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-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