You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't robust to renamings of the handle or the instance.
What would be better is to additionally build a check for whether an SQLite file exists in the storage location. Because it's "ugly" to have the .lndb file in the root level of the storage location rather than in the .lamindb/ folder, we should consider moving it while building this check.
We could also consider not naming it by the instance uuid, but instance just ./lamindb/_database.lndb or another 'better name'. Would need to ponder. The nice thing about naming the sqlite file with the instance uuid is that allows to work with several of these files. Hence, I'm now leaning towards keeping the current naming convention.
The text was updated successfully, but these errors were encountered:
Assume you create a purely local instance
You then run
Running this again
will not create a new instance, but use the existing SQLite file
my-test-data/{uuid}.lndb
.It does so by virtue of hashing the instance slug:
lamindb-setup/lamindb_setup/_init_instance.py
Line 155 in 70167ad
This isn't robust to renamings of the handle or the instance.
What would be better is to additionally build a check for whether an SQLite file exists in the storage location. Because it's "ugly" to have the
.lndb
file in the root level of the storage location rather than in the.lamindb/
folder, we should consider moving it while building this check.We could also consider not naming it by the instance uuid, but instance just
./lamindb/_database.lndb
or another 'better name'. Would need to ponder. The nice thing about naming the sqlite file with the instance uuid is that allows to work with several of these files. Hence, I'm now leaning towards keeping the current naming convention.The text was updated successfully, but these errors were encountered: