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
Recently I realized I was opening the wrong database and it took me an hour to figure it out because (*DB).FileSize() was returning non-zero and (*DB).Count() was returning zero, and there were no errors reported by (*DB).Open(). We have no standard way to figure out if the DB is invalid?
As a bonus, doing this will also change the target file even if it wasn't a correct/working database file to begin with.
The text was updated successfully, but these errors were encountered:
Recently I realized I was opening the wrong database and it took me an hour to figure it out because
(*DB).FileSize()
was returning non-zero and(*DB).Count()
was returning zero, and there were no errors reported by(*DB).Open()
. We have no standard way to figure out if the DB is invalid?As a bonus, doing this will also change the target file even if it wasn't a correct/working database file to begin with.
The text was updated successfully, but these errors were encountered: