Skip to content

fix: resolve #72 - #280

Open
Shaidyk wants to merge 1 commit into
outerbase:mainfrom
Shaidyk:fix/issue-72
Open

fix: resolve #72#280
Shaidyk wants to merge 1 commit into
outerbase:mainfrom
Shaidyk:fix/issue-72

Conversation

@Shaidyk

@Shaidyk Shaidyk commented Jun 16, 2026

Copy link
Copy Markdown

Resolves #72.

Added a new ReplicationPlugin (plugins/replication/) that pulls data from the configured external data source (Postgres/MySQL/SQLite/Hyperdrive) into the internal Durable Object SQLite database, so a StarbaseDB instance can serve as a close-to-edge replica. Replication is pull-based and append-only: per table the user defines a tracking column (e.g. id or created_at), and each pull fetches only rows newer than the last checkpoint, which is persisted in a tmp_replication_checkpoints table.

/claim #72

@RudraMalvankar RudraMalvankar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on the replication plugin! One question: how does this handle updates or deletes in the source database after a row has already been replicated? Since replication appears to be append-only, it seems those changes wouldn't propagate. Would it be worth mentioning this limitation more explicitly in the README so users know it's intended behavior?

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.

Replicate data from external source to internal source with a Plugin

2 participants