Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.persistance.sqlite.maintenance

Reclaim free SQLite pages in short transactions. Pass work to the janitor so the gateway can start without waiting for the reclaim.

Reclaim free SQLite pages in short transactions. Pass work to the janitor so
the gateway can start without waiting for the reclaim.
raw docstring

free-spaceclj

(free-space ds)

{:auto-vacuum :page-size :page-count :freelist-count :file-bytes :free-bytes} as SQLite itself reports it — :auto-vacuum is 0 (NONE) or 2 (INCREMENTAL), :file-bytes is the live file, :free-bytes what a vacuum would give back.

`{:auto-vacuum :page-size :page-count :freelist-count :file-bytes :free-bytes}`
as SQLite itself reports it — `:auto-vacuum` is 0 (NONE) or 2 (INCREMENTAL),
`:file-bytes` is the live file, `:free-bytes` what a vacuum would give back.
sourceraw docstring

maybe-vacuum!clj

(maybe-vacuum! ds db-file)
(maybe-vacuum! ds db-file {:keys [min-free-bytes slice-ms open?]})

Give back unused pages in short slices. Retry a busy WAL checkpoint on the janitor.

Give back unused pages in short slices. Retry a busy WAL checkpoint on the janitor.
sourceraw docstring

vacuum-async!clj

(vacuum-async! ds db-file)
(vacuum-async! ds db-file {:keys [delay-ms] :as opts})

Schedule the reclaim after the store opens. Stop when open? is false.

Schedule the reclaim after the store opens. Stop when `open?` is false.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close