Closed sebbarg closed 4 months ago
@sebbarg You only need to use litefs import
if you're importing a pre-existing SQLite database file into LiteFS. You can create empty databases on LiteFS using the normal SQLite API. LiteFS replicas will automatically pick up databases created or imported.
My program is creating databases on the fly (e.g. user clicks a button, database is created).
I have tested that litefs discovers and is able to replicate the new database on the fly.
But the documentation mentions that I should use import instead of cp to copy a database into place.
Does this mean that I should not count on litefs to pick up "dynamically" created databases?