pub struct DbHandle { /* private fields */ }Implementations§
Source§impl DbHandle
impl DbHandle
pub fn init(memory: DbMemory) -> Result<Self, DbError>
pub fn update<T, F>(self, f: F) -> Result<T, DbError>
pub fn query<T, F>(self, f: F) -> Result<T, DbError>
pub fn migrate(self, migrations: &[Migration]) -> Result<(), DbError>
pub fn integrity_check(self) -> Result<String, DbError>
pub fn export_chunk(self, offset: u64, len: u64) -> Result<Vec<u8>, DbError>
pub fn db_checksum(self) -> Result<u64, DbError>
pub fn refresh_checksum(self) -> Result<u64, DbError>
pub fn refresh_checksum_chunk( self, max_bytes: u64, ) -> Result<ChecksumRefresh, DbError>
pub fn begin_import( self, total_size: u64, expected_checksum: u64, ) -> Result<(), DbError>
pub fn import_chunk(self, offset: u64, bytes: &[u8]) -> Result<(), DbError>
pub fn finish_import(self) -> Result<(), DbError>
pub fn cancel_import(self) -> Result<(), DbError>
pub fn compact(self) -> Result<(), DbError>
Trait Implementations§
impl Copy for DbHandle
impl Eq for DbHandle
impl StructuralPartialEq for DbHandle
Auto Trait Implementations§
impl Freeze for DbHandle
impl RefUnwindSafe for DbHandle
impl Send for DbHandle
impl Sync for DbHandle
impl Unpin for DbHandle
impl UnsafeUnpin for DbHandle
impl UnwindSafe for DbHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more