Skip to main content

Module stores

Module stores 

Source
Expand description

Split out of the single-file bootstrap module unchanged (SPEC_LARGE_FILE_MODULE_ANALYSIS_2026_09_30.md §4.3).

Structs§

Stores
Output of open_stores_and_migrate — every store/log handle the rest of bootstrap and AppState need.

Functions§

load_config
Step 2: Parse CLI args and build config. Dispatches the migrate subcommand (and exits) before touching AUTH_KEY-gated config.
open_stores_and_migrate
Step 4: Initialize backend (matching Go cmd/server/main-server.go:374-590). Sets up the data directory, runs in-process migrations, opens every SQLite-backed store, attaches the shared/global registries, and performs the various one-time startup seed/repair passes.