Skip to main content

Crate powdb_storage

Crate powdb_storage 

Source

Modules§

btree
catalog
dir_lock
PID-based advisory lock for a data directory.
disk
error
format
On-disk format version introspection.
heap
page
pj1
PJ1: PowDB JSON 1 — the engine-owned canonical binary encoding for the Json value type (design doc 2026-07-13, section 4.2).
row
stored_json_path
Versioned, table-local identity for persisted JSON expression paths.
table
types
view
wal

Functions§

create_data_dir_secure
Create a database data directory with owner-only permissions.
validate_data_dir_read_only
Validate that data_dir is an existing directory suitable for read-only snapshot serving, without mutating it. Unlike create_data_dir_secure this never creates the directory and never calls set_permissions: a read-only open must leave the directory byte-for-byte unchanged. It only confirms the path exists and is a directory; the actual read access is then proven by opening the catalog and heap files read-only.