pub struct TableStore { /* private fields */ }Expand description
Veilid Table Storage. Database for storing key value pairs persistently and securely across runs.
Implementations§
Source§impl TableStore
impl TableStore
pub async fn tick(&self, _lag: Option<TimestampDuration>) -> EyreResult<()>
Source§impl TableStore
impl TableStore
Sourcepub async fn delete_all(&self)
pub async fn delete_all(&self)
Delete all known tables
Sourcepub async fn open(
&self,
name: &str,
column_count: u32,
) -> VeilidAPIResult<TableDB>
pub async fn open( &self, name: &str, column_count: u32, ) -> VeilidAPIResult<TableDB>
Get or create a TableDB database table. If the column count is greater than an existing TableDB’s column count, the database will be upgraded to add the missing columns.
pub async fn open_pooled( &self, name: &str, column_count: u32, concurrency: usize, ) -> VeilidAPIResult<TableDB>
Sourcepub async fn delete(&self, name: &str) -> VeilidAPIResult<bool>
pub async fn delete(&self, name: &str) -> VeilidAPIResult<bool>
Delete a TableDB table by name
Sourcepub async fn info(&self, name: &str) -> VeilidAPIResult<Option<TableInfo>>
pub async fn info(&self, name: &str) -> VeilidAPIResult<Option<TableInfo>>
Get the description of a TableDB table
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TableStore
impl !RefUnwindSafe for TableStore
impl Send for TableStore
impl Sync for TableStore
impl Unpin for TableStore
impl !UnwindSafe for TableStore
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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