rdf-store 0.3.4

An in-memory storage adapter for RDF.rs knowledge graphs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This is free and unencumbered software released into the public domain.

use super::{ReadTransaction, WriteTransaction};
use alloc::boxed::Box;
use async_trait::async_trait;

#[async_trait]
pub trait Store {
    type Error;
    type Read: ReadTransaction<Error = Self::Error> + Send;
    type Write: WriteTransaction<Error = Self::Error> + Send;

    async fn read(&mut self) -> Result<Self::Read, Self::Error>;

    async fn write(&mut self) -> Result<Self::Write, Self::Error>;
}