pub trait DbKindT: 'static + Clone + Send + Sync {
    fn kind(&self) -> DbKind;
    fn filename_inner(&self) -> PathBuf;
    fn if_corrupt_wipe(&self) -> bool;

    fn filename(&self) -> PathBuf { ... }
}

Required Methods

The above provided filename method attaches the .sqlite3 extension. Implement this to provide the front part of the database filename.

Whether to wipe the database if it is corrupt. Some database it’s safe to wipe them if they are corrupt because they can be refilled from the network. Other databases cannot be refilled and some manual intervention is required.

Provided Methods

Constuct a partial Path based on the kind

Implementors