Liking cljdoc? Tell your friends :D

eva.v2.storage.block-store.impl.sql


*max-retries*clj

source

block->rowclj

(block->row block)
source

blocks->rowsclj

(blocks->rows blocks)

Converts Blocks into maps suitable for use as row entries.

Converts Blocks into maps suitable for use as row entries.
sourceraw docstring

build-sql-storeclj

(build-sql-store {:as config
                  :keys [:eva.v2.storage.block-store.impl.sql/db-spec]})
source

cntrclj

source

config-subprotocol?clj

(config-subprotocol? expected config)
source

connection-variationsclj

source

db-id-exists?clj

(db-id-exists? db-conn read-mode namespace id)
source

db-read-blocksclj

(db-read-blocks db-conn read-mode namespace ids)
source

exponential-retry-strategyclj

(exponential-retry-strategy retries)
source

h2-db-specclj

(h2-db-spec path)
source

h2-schema-ddlclj

source

init-h2-dbclj

(init-h2-db db-conn)
source

init-local-dbclj

(init-local-db {:as sql-storage :keys [db-spec db-conn config]})
source

init-sqlite-dbclj

(init-sqlite-db db-conn)
source

insert-on-conflict-upsert-blocks!clj

(insert-on-conflict-upsert-blocks! conn write-mode blocks)
source

insert-on-conflict-upsert-stmtclj

(insert-on-conflict-upsert-stmt table conflict-target cols update-cols)
source

insert-on-conflict-upsert-stmt+valsclj

(insert-on-conflict-upsert-stmt+vals write-mode blocks)
source

insert-or-update-on-duplicate-blocks!clj

(insert-or-update-on-duplicate-blocks! conn write-mode blocks)
source

insert-or-update-on-duplicate-blocks-stmt+valsclj

(insert-or-update-on-duplicate-blocks-stmt+vals write-mode blocks)
source

insert-or-update-on-duplicate-stmtclj

(insert-or-update-on-duplicate-stmt table cols update-cols)
source

juxt-colsclj

(juxt-cols cols)
source

key-violation-errorclj

(key-violation-error connection-type)

Returns the Error Code to expect given the driver being used. Retrieves this error code from :key-violation-error-code in driver-variations.

Returns the Error Code to expect given the driver being used. Retrieves
this error code from :key-violation-error-code in driver-variations.
sourceraw docstring

key-violation-stateclj

(key-violation-state connection-type)

Returns the SQL State to expect from a key violation error given the driver being used. Retrieves this state code from :key-violation-sql-state in driver-variations.

Returns the SQL State to expect from a key violation error given the driver
being used. Retrieves this state code from :key-violation-sql-state in
driver-variations.
sourceraw docstring

merge-blocks!clj

(merge-blocks! conn write-mode blocks)
source

merge-into!clj

(merge-into! conn table cols rows)

merges records into specified table

merges records into specified table
sourceraw docstring

merge-stmtclj

(merge-stmt table cols)
source

pool-configclj

(pool-config)
source

query-readclj

(query-read read-mode namespace ids)
source

retryingcljmacro

(retrying & body)
source

rows->valsclj

(rows->vals cols rows)
source

select-for-read-modeclj

(select-for-read-mode read-mode)
source

sql-in-listclj

(sql-in-list for-params)
source

sql-store-identclj

(sql-store-ident {:keys [:eva.v2.storage.block-store.impl.sql/db-spec]})
source

sqlite-db-specclj

(sqlite-db-spec path)
source

sqlite-schema-ddlclj

source

table-nameclj

source

temp-fileclj

(temp-file)
source

update-or-insert!clj

(update-or-insert! conn table row where-clause)

Updates columns or inserts a new row in the specified table

Updates columns or inserts a new row in the specified table
sourceraw docstring

upsert-blocks-strategyclj

(upsert-blocks-strategy connection-type)

Returns the driver-specific function stored as :upsert-strategy in driver-variations. The function is expected to accept 3 arguments: [database-connection, write-mode, and blocks-sequence]

Returns the driver-specific function stored as :upsert-strategy in driver-variations.
The function is expected to accept 3 arguments:
[database-connection, write-mode, and blocks-sequence]
sourceraw docstring

with-bytestring-parameter-behaviorcljmacro

(with-bytestring-parameter-behavior connection-type & body)
source

write-mode-rowsclj

(write-mode-rows write-mode rows)

If write-mode == :write-attrs, strips the :val from rows

If write-mode == :write-attrs, strips the :val from rows
sourceraw docstring

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

× close