pub async fn open_db<M: Migrator + 'static>(
db_dir: &Path,
release_channel: &ReleaseChannel
) -> ThreadSafeConnection<M>
Expand description
Open or create a database at the given directory path. This will retry a couple times if there are failures. If opening fails once, the db directory is moved to a backup folder and a new one is created. If that fails, a shared in memory db is created. In either case, static variables are set so that the user can be notified.