ckb_rocksdb::ops

Trait OpenCF

Source
pub trait OpenCF: OpenRaw {
    // Provided methods
    fn open_cf<P, I, N>(opts: &Options, path: P, cfs: I) -> Result<Self, Error>
       where P: AsRef<Path>,
             I: IntoIterator<Item = N>,
             N: AsRef<str> { ... }
    fn open_cf_descriptors<P, I>(
        opts: &Options,
        path: P,
        cfs: I,
    ) -> Result<Self, Error>
       where P: AsRef<Path>,
             I: IntoIterator<Item = ColumnFamilyDescriptor> { ... }
    fn open_cf_descriptors_with_descriptor<P, I>(
        opts: &Options,
        path: P,
        cfs: I,
        descriptor: Self::Descriptor,
    ) -> Result<Self, Error>
       where P: AsRef<Path>,
             I: IntoIterator<Item = ColumnFamilyDescriptor> { ... }
}

Provided Methods§

Source

fn open_cf<P, I, N>(opts: &Options, path: P, cfs: I) -> Result<Self, Error>
where P: AsRef<Path>, I: IntoIterator<Item = N>, N: AsRef<str>,

Open a database with the given database options and column family names.

Column families opened using this function will be created with default Options.

Source

fn open_cf_descriptors<P, I>( opts: &Options, path: P, cfs: I, ) -> Result<Self, Error>

Open a database with the given database options and column family descriptors.

Source

fn open_cf_descriptors_with_descriptor<P, I>( opts: &Options, path: P, cfs: I, descriptor: Self::Descriptor, ) -> Result<Self, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§