Trait indradb::Datastore

source ·
pub trait Datastore {
    type Trans: Transaction;

    fn transaction(&self) -> Result<Self::Trans>;
}
Expand description

Specifies a datastore implementation.

Datastores are responsible for providing transactions.

Errors

All methods may return an error if something unexpected happens - e.g. if there was a problem connecting to the underlying database.

Required Associated Types

Required Methods

Creates a new transaction.

Implementors