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§
Sourcefn save_to_file(&self, path: &str) -> DbxResult<()>
fn save_to_file(&self, path: &str) -> DbxResult<()>
데이터베이스를 파일로 저장
Sourcefn load_from_file(path: &str) -> DbxResult<Self>where
Self: Sized,
fn load_from_file(path: &str) -> DbxResult<Self>where
Self: Sized,
파일에서 데이터베이스 로드