orbitinghail / sqlsync

SQLSync is a collaborative offline-first wrapper around SQLite. It is designed to synchronize web application state between users, devices, and the edge.
https://sqlsync.dev
Apache License 2.0
2.19k stars 28 forks source link

Server-initiated mutations #43

Closed carlsverre closed 6 months ago

carlsverre commented 6 months ago

Fixes #42

This PR introduces a new method on the CoordinatorDocument type called mutate_direct which allows direct access to the underlying sqlite database. Any changes made to the underlying sqlite database will be propagated to all clients.

carlsverre commented 6 months ago

@matthewgapp let me know if this satisfies your feature req.

matthewgapp commented 6 months ago

@matthewgapp let me know if this satisfies your feature req.

Thanks, after an initial glance this looks great. Will dig in more tomorrow.