Skip to content

Bootstrap XDG SQLite persistence - #100

Merged
ATAC-Helicopter merged 1 commit into
mainfrom
feature/fad-0301-sqlite-bootstrap
Sep 24, 2026
Merged

ATAC-Helicopter merged 1 commit into
mainfrom
feature/fad-0301-sqlite-bootstrap

Conversation

@ATAC-Helicopter

Copy link
Copy Markdown
Member

Scope

  • Resolve Fadrio config, data, cache, and state paths from absolute XDG overrides or user-home fallbacks.
  • Initialize a per-user SQLite database before the desktop window opens.
  • Add versioned, checksummed, transactional migration history with a first settings table.
  • Reject unknown future schemas, changed migration checksums, and failed migration SQL without resetting existing user data.
  • Use a private newly created data directory and a current native SQLite bundle.

Closes #26.

Validation

  • FADRIO_RUN_PIPEWIRE_INTEGRATION=1 ./scripts/test.sh: 82 managed tests, native lifecycle, and isolated PipeWire integration passed.
  • Roadmap audit and six tooling tests passed; formatting and diff checks passed.
  • An actual app startup under an isolated XDG_DATA_HOME created fadrio/fadrio.db.
  • Initial restore exposed a vulnerable older SQLite native bundle; the final package graph uses Microsoft.Data.Sqlite.Core 10.0.12 with SQLitePCLRaw.bundle_e_sqlite3 3.0.5 and restores cleanly.

GitHub Actions will be canceled at the user's request to conserve minutes. Local and runtime checks are reported precisely; remote CI is not claimed.

@ATAC-Helicopter
ATAC-Helicopter merged commit 1e9738e into main Sep 24, 2026
0 of 2 checks passed
@ATAC-Helicopter
ATAC-Helicopter deleted the feature/fad-0301-sqlite-bootstrap branch September 24, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FAD-0301: Implement XDG data paths, SQLite bootstrap, and deterministic migrations

1 participant