[][src]Trait ligature::Ligature

pub trait Ligature {
    pub fn all_datasets(&self) -> Box<dyn Iterator<Item = DatasetName>>;
pub fn match_datasets(
        &self,
        prefix: String
    ) -> Box<dyn Iterator<Item = DatasetName>>;
pub fn match_datasets_range(
        &self,
        start: String,
        end: String
    ) -> Box<dyn Iterator<Item = DatasetName>>;
pub fn create_dataset(
        &self,
        dataset: DatasetName
    ) -> Result<(), LigatureError>;
pub fn delete_dataset(
        &self,
        dataset: DatasetName
    ) -> Result<DatasetName, LigatureError>;
pub fn query(
        &self,
        dataset: DatasetName
    ) -> Result<Box<dyn QueryTx>, LigatureError>;
pub fn write(
        &self,
        dataset: DatasetName
    ) -> Result<Box<dyn WriteTx>, LigatureError>; }

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]

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]

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]

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]

Initiazes a QueryTx TODO should probably return its own error type CouldNotInitializeQueryTx

pub fn write(
    &self,
    dataset: DatasetName
) -> Result<Box<dyn WriteTx>, LigatureError>
[src]

Initiazes a WriteTx TODO should probably return its own error type CouldNotInitializeWriteTx

Loading content...

Implementors

Loading content...