[−][src]Trait ligature::Ligature
A trait that all Ligature implementations implement.
Required methods
pub fn all_datasets(&self) -> Box<dyn Iterator<Item = DatasetName>>
[src]
Returns all Datasets in a Ligature instance.
pub fn match_datasets(
&self,
prefix: String
) -> Box<dyn Iterator<Item = DatasetName>>
[src]
&self,
prefix: String
) -> Box<dyn Iterator<Item = DatasetName>>
Returns all Datasets in a Ligature instance that start with the given prefix.
pub fn match_datasets_range(
&self,
start: String,
end: String
) -> Box<dyn Iterator<Item = DatasetName>>
[src]
&self,
start: String,
end: String
) -> Box<dyn Iterator<Item = DatasetName>>
Returns all Datasets in a Ligature instance that are in a given range (inclusive, exclusive].
pub fn create_dataset(&self, dataset: DatasetName) -> Result<(), LigatureError>
[src]
Creates a dataset with the given name. TODO should probably return its own error type { InvalidDatasetName, DatasetExists, CouldNotCreateDataset }
pub fn delete_dataset(
&self,
dataset: DatasetName
) -> Result<DatasetName, LigatureError>
[src]
&self,
dataset: DatasetName
) -> Result<DatasetName, LigatureError>
Deletes a dataset with the given name. TODO should probably return its own error type { InvalidDatasetName, CouldNotDeleteDataset }
pub fn query(
&self,
dataset: DatasetName
) -> Result<Box<dyn QueryTx>, LigatureError>
[src]
&self,
dataset: DatasetName
) -> Result<Box<dyn QueryTx>, LigatureError>
Initiazes a QueryTx TODO should probably return its own error type CouldNotInitializeQueryTx
pub fn write(
&self,
dataset: DatasetName
) -> Result<Box<dyn WriteTx>, LigatureError>
[src]
&self,
dataset: DatasetName
) -> Result<Box<dyn WriteTx>, LigatureError>
Initiazes a WriteTx TODO should probably return its own error type CouldNotInitializeWriteTx