TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: SQLiteChangesetSync – Git-Like Sync for SQLite Databases

5 pointsby gerdembover 1 year ago
Hello HN! I’m happy to introduce SQLiteChangesetSync, a Swift package I’m sharing for the first time. It’s designed for offline-first synchronization of SQLite databases across devices. The package uses the SQLite Session Extension for capturing and committing changes in the local database. When the client is online, these changesets can then be pushed to a shared repository, which could be any server or database (example CloudKit implementation included). Other clients can fetch these changesets to keep their local databases consistent.<p>SQLiteChangesetSync supports branch merging when databases diverge and provides the ability for applications to handle merge conflicts. I&#x27;ve also included a pre-built iOS app in the package, allowing you to run two instances on different simulators to experiment with the syncing process. I’m eager to hear feedback on both the concept and implementation of database synchronization. Your insights are highly valued!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gerdemb&#x2F;SQLiteChangesetSync">https:&#x2F;&#x2F;github.com&#x2F;gerdemb&#x2F;SQLiteChangesetSync</a><p>Note: As this project is experimental and self-tested, some challenges are expected. Looking forward to your feedback!

1 comment

skruglyover 1 year ago
That&#x27;s awesome! I have plans to do the same thing but for android.<p>How long did it take you to implement this proof of concept?
评论 #38663057 未加载