Liking cljdoc? Tell your friends :D

jdbc.proto


IConnectioncljprotocol

Represents a connection like object that wraps a raw jdbc connection with some other data.

Represents a connection like object that wraps
a raw jdbc connection with some other data.

connectionclj

(connection _)

Create or obtain existing connection

Create or obtain existing connection
sourceraw docstring

IDatabaseMetadatacljprotocol

Allows uniform database metadata extraction.

Allows uniform database metadata extraction.

get-database-metadataclj

(get-database-metadata _)

Get metadata instance.

Get metadata instance.
sourceraw docstring

IExecutecljprotocol

executeclj

(execute q conn opts)

Execute a query and return a number of rows affected.

Execute a query and return a number of rows affected.
source

IFetchcljprotocol

fetchclj

(fetch q conn opts)

Fetch eagerly results executing query.

Fetch eagerly results executing query.
source

IPreparedStatementcljprotocol

Responsible of building prepared statements.

Responsible of building prepared statements.

prepared-statementclj

(prepared-statement _ connection options)

Create a prepared statement.

Create a prepared statement.
sourceraw docstring

ISQLResultSetReadColumncljprotocol

Protocol that exposes uniform way to convert values obtained from result set to user types. Default implementation available for Object, Boolean, and nil.

Protocol that exposes uniform way to convert values
obtained from result set to user types. Default implementation
available for Object, Boolean, and nil.

from-sql-typeclj

(from-sql-type _ conn metadata index)

Convert sql type to user type.

Convert sql type to user type.
sourceraw docstring

ISQLTypecljprotocol

Protocol that exposes uniform way for convert user types to sql/jdbc compatible types and uniform set parameters to prepared statement instance. Default implementation available for Object and nil values.

Protocol that exposes uniform way for convert user
types to sql/jdbc compatible types and uniform set parameters
to prepared statement instance. Default implementation available
for Object and nil values.

as-sql-typeclj

(as-sql-type _ conn)

Convert user type to sql type.

Convert user type to sql type.

set-stmt-parameter!clj

(set-stmt-parameter! this conn stmt index)

Set value to statement.

Set value to statement.
sourceraw docstring

ITransactionStrategycljprotocol

begin!clj

(begin! _ conn opts)

Starts a transaction and return a connection instance.

Starts a transaction and return a connection instance.

commit!clj

(commit! _ conn opts)

Commits a transaction. Returns nil.

Commits a transaction. Returns nil.

rollback!clj

(rollback! _ conn opts)

Rollbacks a transaction. Returns nil.

Rollbacks a transaction. Returns nil.
source

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

× close