vlcn-io / cr-sqlite

Convergent, Replicated SQLite. Multi-writer and CRDT support for SQLite
https://vlcn.io
MIT License
2.61k stars 69 forks source link

Add option to compare site_id when values are equal to determine ultimate winner #415

Closed jeromegn closed 6 months ago

jeromegn commented 6 months ago

Adds 2 functions crsql_config_set(name, value) and crsql_config_get(name). They enable setting and getting config settings persisted to the database, but also available in crsql_ExtData.

The first and only setting right now is merge-equal-values making sure there's always a winner by tie-breaking on site_id when everything else is equal.