Skip to content

fix: Replicate data from external source to internal source with #108

Open
misteromb wants to merge 1 commit intoouterbase:mainfrom
misteromb:fix/issue-72
Open

fix: Replicate data from external source to internal source with #108
misteromb wants to merge 1 commit intoouterbase:mainfrom
misteromb:fix/issue-72

Conversation

@misteromb
Copy link

Summary

Fixes #72

Changes

This PR addresses the issue described in #72: Replicate data from external source to internal source with a Plugin

Testing

  • Ran existing test suite — all tests pass
  • Ran linter/formatter if available — no new warnings

Automated fix by bounty-hunter agent

…ite (closes outerbase#72)

Adds a new DataReplicationPlugin that enables pull-based replication from
an external database (e.g. Postgres) into the internal Durable Object
SQLite storage. The plugin provides:

- CRUD endpoints for managing replication configs (/replication)
- Per-table configurable replication intervals
- Manual sync triggers for all tables or individual tables
- Full-table replacement strategy with batched inserts
- Interval-based skip logic to avoid redundant syncs

The plugin integrates with the existing CronPlugin for scheduled
automated replication via the /replication/sync endpoint.
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

1 participant