Skip to main content

DatabaseSnapshot

Trait DatabaseSnapshot 

Source
pub trait DatabaseSnapshot {
    // Required methods
    fn save_to_file(&self, path: &str) -> DbxResult<()>;
    fn load_from_file(path: &str) -> DbxResult<Self>
       where Self: Sized;
}
Expand description

스냅샷 및 백업 기능을 제공하는 Trait

Required Methods§

Source

fn save_to_file(&self, path: &str) -> DbxResult<()>

데이터베이스를 파일로 저장

Source

fn load_from_file(path: &str) -> DbxResult<Self>
where Self: Sized,

파일에서 데이터베이스 로드

Implementors§