Liking cljdoc? Tell your friends :D

suricatta.core

High level sql toolkit for Clojure

High level sql toolkit for Clojure
raw docstring

apply-atomicclj

(apply-atomic & args)

Apply a function in a transaction.

Apply a function in a transaction.
sourceraw docstring

atomiccljmacro

(atomic ctx & body)

Convenience macro for execute a computation in a transaction or subtransaction.

Convenience macro for execute a computation
in a transaction or subtransaction.
sourceraw docstring

contextclj

(context uri)
(context uri opts)

Context constructor.

Context constructor.
sourceraw docstring

cursor->seqclj

(cursor->seq cursor)
(cursor->seq cursor opts)

Transform a cursor in a lazyseq.

The returned lazyseq will return values until a cursor is closed or all values are fetched.

Transform a cursor in a lazyseq.

The returned lazyseq will return values until a cursor
is closed or all values are fetched.
sourceraw docstring

executeclj

(execute q)
(execute ctx q)

Execute a query and return a number of rows affected.

Execute a query and return a number of rows affected.
sourceraw docstring

fetchclj

(fetch q)
(fetch ctx q)
(fetch ctx q opts)

Fetch eagerly results executing a query.

This function returns a vector of records (default) or rows (depending on specified opts). Resources are relased inmediatelly without specific explicit action for it.

Fetch eagerly results executing a query.

This function returns a vector of records (default) or
rows (depending on specified opts). Resources are relased
inmediatelly without specific explicit action for it.
sourceraw docstring

fetch-lazyclj

(fetch-lazy ctx q)
(fetch-lazy ctx q opts)

Fetch lazily results executing a query.

This function returns a cursor instead of result. You should explicitly close the cursor at the end of iteration for release resources.

Fetch lazily results executing a query.

This function returns a cursor instead of result.
You should explicitly close the cursor at the end of
iteration for release resources.
sourceraw docstring

fetch-oneclj

source

load-intoclj

(load-into ctx tablename data)
(load-into ctx tablename data opts)

Load data into a table. Supports csv and json formats.

Load data into a table. Supports csv and json formats.
sourceraw docstring

queryclj

(query ctx querylike)

Mark a query for reuse the prepared statement.

This function should be used with precaution and close method should be called when query is not longer needed. In almost all cases you should not need use this function.

Mark a query for reuse the prepared statement.

This function should be used with precaution and
close method should be called when query is not
longer needed. In almost all cases you should not
need use this function.
sourceraw docstring

set-rollback!clj

(set-rollback! ctx)

Mark current transaction for rollback.

This function is not safe and it not aborts the execution of current function, it only marks the current transaction for rollback.

Mark current transaction for rollback.

This function is not safe and it not aborts
the execution of current function, it only
marks the current transaction for rollback.
sourceraw docstring

typed-fieldclj

(typed-field data type)

Get a instance of Field definitio.

Get a instance of Field definitio.
sourceraw docstring

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

× close