[][src]Trait indradb::Datastore

pub trait Datastore {
    type Trans: Transaction;
    fn transaction(&self) -> Result<Self::Trans>;

    fn bulk_insert<I>(&self, items: I) -> Result<()>
    where
        I: Iterator<Item = BulkInsertItem>
, { ... } }

Specifies a datastore implementation.

Errors

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

Associated Types

Loading content...

Required methods

fn transaction(&self) -> Result<Self::Trans>

Creates a new transaction.

Loading content...

Provided methods

fn bulk_insert<I>(&self, items: I) -> Result<()> where
    I: Iterator<Item = BulkInsertItem>, 

Bulk inserts many vertices, edges, and/or properties.

Arguments

  • items: The items to insert.
Loading content...

Implementors

impl Datastore for MemoryDatastore[src]

Loading content...