Struct rocksdb::checkpoint::Checkpoint [−][src]
pub struct Checkpoint<'db> { /* fields omitted */ }Database’s checkpoint object. Used to create checkpoints of the specified DB from time to time.
Implementations
impl<'db> Checkpoint<'db>[src]
impl<'db> Checkpoint<'db>[src]pub fn new(db: &'db DB) -> Result<Checkpoint<'db>, Error>[src]
Creates new checkpoint object for specific DB.
Does not actually produce checkpoints, call .create_checkpoint() method to produce
a DB checkpoint.
pub fn create_checkpoint<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>[src]
Creates new physical DB checkpoint in directory specified by path.
Trait Implementations
impl<'db> Drop for Checkpoint<'db>[src]
impl<'db> Drop for Checkpoint<'db>[src]