(blocks->rows blocks)
Converts Blocks into maps suitable for use as row entries.
Converts Blocks into maps suitable for use as row entries.
(build-sql-store {:as config
:keys [:eva.v2.storage.block-store.impl.sql/db-spec]})
(insert-on-conflict-upsert-blocks! conn write-mode blocks)
(insert-on-conflict-upsert-stmt table conflict-target cols update-cols)
(insert-or-update-on-duplicate-blocks! conn write-mode blocks)
(insert-or-update-on-duplicate-blocks-stmt+vals write-mode blocks)
(insert-or-update-on-duplicate-stmt table cols update-cols)
(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.
(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.
(merge-into! conn table cols rows)
merges records into specified table
merges records into specified table
(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
(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]
(with-bytestring-parameter-behavior connection-type & body)
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close