Skip to main content

Module db

Module db 

Source
Expand description

Storage layer — target-transparent SQLite access.

Call open_file or open_memory instead of calling rusqlite::Connection directly. Internally they dispatch to the correct backend for each compile target.

Structs§

DucConnection
A fully-initialized rusqlite::Connection with schema applied.

Enums§

DbError
Unified error type for the storage layer.

Functions§

open_file
Open (or create) a .duc file at path on non-WASM targets.
open_memory
Open an in-memory .duc database on non-WASM targets.
open_memory_compact
Open an in-memory .duc database with page_size = 1024, optimized for minimal serialization output size.

Type Aliases§

DbResult