[−][src]Struct g1_sqlite_connection::SqliteConnection
A G1 connection based on an SQLite database, using the FS for blobs.
TODO: Make this not use g1_common::naive_solve
...
Methods
impl SqliteConnection
[src]
pub async fn open(path: PathBuf) -> Result<SqliteConnection, SqliteError>
[src]
Opens a connection to the database, given a directory to store the database and blobs in.
Trait Implementations
impl Debug for SqliteConnection
[src]
impl Connection for SqliteConnection
[src]
type Error = SqliteError
The error returned by operations on this connection.
fn create_atom<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Atom, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Atom, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_atom<'life0, 'async_trait>(
&'life0 self,
atom: Atom
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
atom: Atom
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_name<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
atom: Atom,
ns: &'life1 str,
title: &'life2 str,
upsert: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
atom: Atom,
ns: &'life1 str,
title: &'life2 str,
upsert: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn delete_name<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ns: &'life1 str,
title: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ns: &'life1 str,
title: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn create_edge<'life0, 'life1, 'async_trait>(
&'life0 self,
from: Atom,
to: Atom,
label: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
from: Atom,
to: Atom,
label: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete_edge<'life0, 'life1, 'async_trait>(
&'life0 self,
from: Atom,
to: Atom,
label: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
from: Atom,
to: Atom,
label: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_tag<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
atom: Atom,
key: &'life1 str,
value: &'life2 str,
upsert: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
atom: Atom,
key: &'life1 str,
value: &'life2 str,
upsert: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn delete_tag<'life0, 'life1, 'async_trait>(
&'life0 self,
atom: Atom,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
atom: Atom,
key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
atom: Atom,
kind: &'life1 str,
mime: Mime,
hash: Hash,
upsert: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
atom: Atom,
kind: &'life1 str,
mime: Mime,
hash: Hash,
upsert: bool
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete_blob<'life0, 'life1, 'async_trait>(
&'life0 self,
atom: Atom,
kind: &'life1 str,
mime: Mime
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
atom: Atom,
kind: &'life1 str,
mime: Mime
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn fetch_blob<'life0, 'async_trait>(
&'life0 self,
hash: Hash
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Send>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
hash: Hash
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Send>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn store_blob<'life0, 'async_trait>(
&'life0 self,
data: Pin<Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Send + 'static>>
) -> Pin<Box<dyn Future<Output = Result<Hash, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
data: Pin<Box<dyn Stream<Item = Result<Bytes, Self::Error>> + Send + 'static>>
) -> Pin<Box<dyn Future<Output = Result<Hash, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
limit: Option<usize>,
query: &'life1 NamelessQuery
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Arc<str>>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
limit: Option<usize>,
query: &'life1 NamelessQuery
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Arc<str>>>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn query_all<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 NamelessQuery
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Arc<str>>>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
query: &'life1 NamelessQuery
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Arc<str>>>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn query_first<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 NamelessQuery
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Arc<str>>>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
query: &'life1 NamelessQuery
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Arc<str>>>, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn query_has_results<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 NamelessQuery
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
query: &'life1 NamelessQuery
) -> Pin<Box<dyn Future<Output = Result<bool, Self::Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl Send for SqliteConnection
impl Sync for SqliteConnection
impl Unpin for SqliteConnection
impl !UnwindSafe for SqliteConnection
impl !RefUnwindSafe for SqliteConnection
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self