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

do not check `updatedTableInfosThisTx` as we can't reset on read #437

Open tantaman opened 1 month ago

tantaman commented 1 month ago

commitHook is only called after a write or explicit transaction.

Table infos need to be updated in scenarios where there is a read-only connection pulling from crsql_changes and some other connection updated the schema of the DB.

jeromegn commented 1 month ago

This fixes the issues we've encountered with read-only connections.