ckb_rocksdb::ops

Trait WriteOps

Source
pub trait WriteOps {
    // Required method
    fn write_full(
        &self,
        batch: &WriteBatch,
        writeopts: Option<&WriteOptions>,
    ) -> Result<(), Error>;

    // Provided methods
    fn write(&self, batch: &WriteBatch) -> Result<(), Error> { ... }
    fn write_opt(
        &self,
        batch: &WriteBatch,
        writeopts: &WriteOptions,
    ) -> Result<(), Error> { ... }
    fn write_without_wal(&self, batch: &WriteBatch) -> Result<(), Error> { ... }
}

Required Methods§

Source

fn write_full( &self, batch: &WriteBatch, writeopts: Option<&WriteOptions>, ) -> Result<(), Error>

Provided Methods§

Source

fn write(&self, batch: &WriteBatch) -> Result<(), Error>

Source

fn write_opt( &self, batch: &WriteBatch, writeopts: &WriteOptions, ) -> Result<(), Error>

Source

fn write_without_wal(&self, batch: &WriteBatch) -> Result<(), Error>

Implementors§