pub struct SqliteBucket { /* private fields */ }Expand description
SQLite storage bucket (collection)
Implementations§
Source§impl SqliteBucket
impl SqliteBucket
Sourcepub fn existing_columns(&self) -> Vec<String>
pub fn existing_columns(&self) -> Vec<String>
Returns all column names currently in the schema cache
Sourcepub fn has_column(&self, name: &str) -> bool
pub fn has_column(&self, name: &str) -> bool
Check if a column exists in the schema cache
Trait Implementations§
Source§impl StorageCollection for SqliteBucket
impl StorageCollection for SqliteBucket
fn set_state<'life0, 'async_trait>(
&'life0 self,
state: Attested<EntityState>,
) -> Pin<Box<dyn Future<Output = Result<bool, MutationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_state<'life0, 'async_trait>(
&'life0 self,
id: EntityId,
) -> Pin<Box<dyn Future<Output = Result<Attested<EntityState>, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_states<'life0, 'life1, 'async_trait>(
&'life0 self,
selection: &'life1 Selection,
) -> Pin<Box<dyn Future<Output = Result<Vec<Attested<EntityState>>, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_event<'life0, 'life1, 'async_trait>(
&'life0 self,
entity_event: &'life1 Attested<Event>,
) -> Pin<Box<dyn Future<Output = Result<bool, MutationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_events<'life0, 'async_trait>(
&'life0 self,
event_ids: Vec<EventId>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Attested<Event>>, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_events<'life0, 'async_trait>(
&'life0 self,
event_ids: Vec<EventId>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Attested<Event>>, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve a list of events
Source§fn dump_entity_events<'life0, 'async_trait>(
&'life0 self,
entity_id: EntityId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Attested<Event>>, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn dump_entity_events<'life0, 'async_trait>(
&'life0 self,
entity_id: EntityId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Attested<Event>>, RetrievalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve all events from the collection
fn set_states<'life0, 'async_trait>(
&'life0 self,
states: Vec<Attested<EntityState>>,
) -> Pin<Box<dyn Future<Output = Result<(), MutationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_states<'life0, 'async_trait>(
&'life0 self,
ids: Vec<EntityId>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Attested<EntityState>>, RetrievalError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for SqliteBucket
impl !RefUnwindSafe for SqliteBucket
impl Send for SqliteBucket
impl Sync for SqliteBucket
impl Unpin for SqliteBucket
impl !UnwindSafe for SqliteBucket
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 moreSource§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.