tursodatabase/libsql

Sync overwrites local databases

penberg opened this issue · 0 comments

If I have a local database file local.db that has some data and I configure a sync URL to an unrelated remote database, the sync operation will overwrite the local database file. We perhaps should make sync work so that we'll only sync if there is an existing WAL index file or there's no local database file to avoid people overwriting their data accidentally.