pub struct RedbPersistence { /* private fields */ }Implementations§
Source§impl RedbPersistence
impl RedbPersistence
pub fn create(path: &Path) -> Result<Self>
pub fn open(path: &Path) -> Result<Self>
pub fn close(&self)
pub fn path(&self) -> &Path
pub fn flush_data(&self, ws: &WriteSet) -> Result<()>
pub fn flush_data_with_logs( &self, ws: &WriteSet, change_log: &[ChangeLogEntry], ) -> Result<()>
pub fn flush_table_meta(&self, name: &str, meta: &TableMeta) -> Result<()>
pub fn remove_table_meta(&self, name: &str) -> Result<()>
pub fn flush_config_value<T: Serialize>( &self, key: &str, value: &T, ) -> Result<()>
pub fn remove_config_value(&self, key: &str) -> Result<()>
pub fn append_change_log( &self, lsn: Lsn, entries: &[ChangeLogEntry], ) -> Result<()>
pub fn append_ddl_log(&self, lsn: Lsn, change: &DdlChange) -> Result<()>
pub fn remove_table_data(&self, name: &str) -> Result<()>
pub fn rewrite_table_rows( &self, name: &str, rows: &[VersionedRow], ) -> Result<()>
pub fn rewrite_vectors(&self, vectors: &[VectorEntry]) -> Result<()>
pub fn rewrite_graph_edges(&self, edges: &[AdjEntry]) -> Result<()>
pub fn load_all_table_meta(&self) -> Result<HashMap<String, TableMeta>>
pub fn load_config_value<T: DeserializeOwned>( &self, key: &str, ) -> Result<Option<T>>
pub fn load_relational_table(&self, name: &str) -> Result<Vec<VersionedRow>>
pub fn load_all_tables(&self) -> Result<HashMap<String, Vec<VersionedRow>>>
pub fn load_forward_edges(&self) -> Result<Vec<AdjEntry>>
pub fn load_reverse_edges(&self) -> Result<Vec<AdjEntry>>
pub fn load_vectors(&self) -> Result<Vec<VectorEntry>>
pub fn load_change_log(&self) -> Result<Vec<ChangeLogEntry>>
pub fn load_ddl_log(&self) -> Result<Vec<(Lsn, DdlChange)>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedbPersistence
impl RefUnwindSafe for RedbPersistence
impl Send for RedbPersistence
impl Sync for RedbPersistence
impl Unpin for RedbPersistence
impl UnsafeUnpin for RedbPersistence
impl UnwindSafe for RedbPersistence
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more