Trait holochain_types::db::DbKindT
source · [−]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
fn filename_inner(&self) -> PathBuf
fn filename_inner(&self) -> PathBuf
The above provided filename
method attaches the .sqlite3 extension.
Implement this to provide the front part of the database filename.
fn if_corrupt_wipe(&self) -> bool
fn if_corrupt_wipe(&self) -> bool
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.