pub struct Db { /* private fields */ }Implementations
sourceimpl Db
impl Db
pub fn with_columns(path: &Path, num_columns: u8) -> Result<Db>
sourcepub fn open_or_create(options: &Options) -> Result<Db>
pub fn open_or_create(options: &Options) -> Result<Db>
Create the database using given options.
pub fn open_read_only(options: &Options) -> Result<Db>
pub fn get(&self, col: u8, key: &[u8]) -> Result<Option<Value>>
pub fn get_size(&self, col: u8, key: &[u8]) -> Result<Option<u32>>
pub fn iter(&self, col: u8) -> Result<BTreeIterator<'_>>
pub fn commit<I, K>(&self, tx: I) -> Result<()> where
I: IntoIterator<Item = (u8, K, Option<Value>)>,
K: AsRef<[u8]>,
pub fn commit_raw(&self, commit: CommitChangeSet) -> Result<()>
pub fn num_columns(&self) -> u8
pub fn collect_stats(&self, writer: &mut impl Write, column: Option<u8>)
pub fn clear_stats(&self, column: Option<u8>)
pub fn dump(&self, check_param: CheckOptions) -> Result<()>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more