ritual sync push — forge.db → Postgres via Electric-sql bridge #2
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/forge-core#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Build a sync bridge from the local
forge.db(SQLite, CRSQLite) to the forge's PostgreSQL backend using Electric-sql. This is the local-first persistence layer — forge.db is the source of truth offline; sync pushes to Postgres when connected.Tasks
forge.dbtables (wishes, frames, ruses, etc.) to Electric-sql syncritual sync pushsubcommand that drains pending changes to Postgrespending_syncdrain toritual sync pushand clearpending_sync_dlqon successKey context
forge,electric-sql,phase-3b,local-firstforge.dbalready hascrsql_*tables (CRSQLite change-tracking infrastructure)pending_syncandpending_sync_dlqtables exist inforge.dbAcceptance criteria
ritual sync pushdrains allpending_syncrows to Postgres without data losspending_sync_dlqrather than silently overwritingForge wish:
ceb6b6c9