Skip to content

Reuse Shared Bootstrap Schema Loader in CLI #2236

@findolor

Description

@findolor

Background

storage.rs under the CLI commands initializes sqlite schema and bootstrap data separately from the WASM path. Planned improvements to the shared sync module include configurable bootstrap/dump loading.

Problem

Keeping a CLI-specific schema initializer introduces drift and doubles the work when bootstrap behavior changes.

Proposed Approach

  1. After the shared sync module exposes a configurable bootstrap loader, wire the CLI storage code to use it instead of maintaining its own copy.
  2. Remove redundant initialization logic from storage.rs, keeping only CLI-specific filesystem handling.
  3. Verify that CLI bootstrap behavior matches the shared path through integration tests.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions