datahike-sqlite.konserve

default-table

batch-insert-strategy

DO NOT USE! For testing/dev only! Strategy for batch inserts: :sequential, :multi-row :sequential - Execute individual INSERT statements for each key-value pair :multi-row - Use multi-row INSERT VALUES syntax Preliminary testing shows that :sequential is always faster than :multi-row


with-write-tx

(with-write-tx db f)

Wrapper around the with-write-tx macro, for use in situations where we cannot use macros directly.


init-db

(init-db db-spec)

create-statement

(create-statement table)

upsert-statement

(upsert-statement table id header meta value)

select-exists-statement

(select-exists-statement table id)

delete-row-statement

(delete-row-statement table store-key)

select-row-statement

(select-row-statement table id)

select-table-exists-statement

(select-table-exists-statement table)

select-all-ids-statement

(select-all-ids-statement table)

update-id-statement

(update-id-statement table from to)

multi-insert-statement

(multi-insert-statement table batch-size)

copy-row-statement

(copy-row-statement table to from)

delete-store-statement

(delete-store-statement table)

change-row-id

(change-row-id db table from to)

read-all

(read-all db table id)

SQLiteRow

→SQLiteRow

(->SQLiteRow db key data cache)

map→SQLiteRow

(map->SQLiteRow m)

SQLiteTable

→SQLiteTable

(->SQLiteTable db-spec db table)

map→SQLiteTable

(map->SQLiteTable m)

prepare-spec

(prepare-spec db-spec opts-table)

connect-store

(connect-store db-spec & {:keys [opts] :as params})

release

(release store env)

Closes the SQLite database connection pools.


delete-store

(delete-store db-spec & {:keys [table opts]})