pub struct LigatureSQLite {}
Expand description
The main struct used for working with the SQLite stored version of Ligature.
Trait Implementations§
Source§impl Ligature for LigatureSQLite
impl Ligature for LigatureSQLite
Source§fn all_datasets(
&self,
) -> Box<dyn Iterator<Item = Result<Dataset, LigatureError>>>
fn all_datasets( &self, ) -> Box<dyn Iterator<Item = Result<Dataset, LigatureError>>>
Returns all Datasets in a Ligature instance.
Source§fn dataset_exists(&self, dataset: &Dataset) -> Result<bool, LigatureError>
fn dataset_exists(&self, dataset: &Dataset) -> Result<bool, LigatureError>
Check if a given Dataset exists.
Source§fn match_datasets_prefix(
&self,
prefix: &str,
) -> Box<dyn Iterator<Item = Result<Dataset, LigatureError>>>
fn match_datasets_prefix( &self, prefix: &str, ) -> Box<dyn Iterator<Item = Result<Dataset, LigatureError>>>
Returns all Datasets in a Ligature instance that start with the given prefix.
Source§fn match_datasets_range(
&self,
start: &str,
end: &str,
) -> Box<dyn Iterator<Item = Result<Dataset, LigatureError>>>
fn match_datasets_range( &self, start: &str, end: &str, ) -> Box<dyn Iterator<Item = Result<Dataset, LigatureError>>>
Returns all Datasets in a Ligature instance that are in a given range (inclusive, exclusive].
Source§fn create_dataset(&self, dataset: &Dataset) -> Result<(), LigatureError>
fn create_dataset(&self, dataset: &Dataset) -> Result<(), LigatureError>
Creates a dataset with the given name.
TODO should probably return its own error type { InvalidDataset, DatasetExists, CouldNotCreateDataset }
Source§fn delete_dataset(&self, dataset: &Dataset) -> Result<(), LigatureError>
fn delete_dataset(&self, dataset: &Dataset) -> Result<(), LigatureError>
Deletes a dataset with the given name.
TODO should probably return its own error type { InvalidDataset, CouldNotDeleteDataset }
Auto Trait Implementations§
impl Freeze for LigatureSQLite
impl RefUnwindSafe for LigatureSQLite
impl Send for LigatureSQLite
impl Sync for LigatureSQLite
impl Unpin for LigatureSQLite
impl UnwindSafe for LigatureSQLite
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