pub struct SqliteGraphStore { /* private fields */ }Expand description
SQLite-backed implementation of RawGraphStore.
Implementations§
Source§impl SqliteGraphStore
impl SqliteGraphStore
Sourcepub fn new(pool: SqlitePool) -> Self
pub fn new(pool: SqlitePool) -> Self
Create a new SqliteGraphStore backed by the given pool.
Trait Implementations§
Source§impl Clone for SqliteGraphStore
impl Clone for SqliteGraphStore
Source§fn clone(&self) -> SqliteGraphStore
fn clone(&self) -> SqliteGraphStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqliteGraphStore
impl Debug for SqliteGraphStore
Source§impl RawGraphStore for SqliteGraphStore
impl RawGraphStore for SqliteGraphStore
Source§async fn save_graph(
&self,
id: &str,
goal: &str,
status: &str,
graph_json: &str,
created_at: &str,
finished_at: Option<&str>,
) -> Result<(), MemoryError>
async fn save_graph( &self, id: &str, goal: &str, status: &str, graph_json: &str, created_at: &str, finished_at: Option<&str>, ) -> Result<(), MemoryError>
Persist a graph (upsert by
id). Read moreSource§async fn load_graph(&self, id: &str) -> Result<Option<String>, MemoryError>
async fn load_graph(&self, id: &str) -> Result<Option<String>, MemoryError>
Load a graph by its string UUID. Read more
Source§async fn list_graphs(
&self,
limit: u32,
) -> Result<Vec<GraphSummary>, MemoryError>
async fn list_graphs( &self, limit: u32, ) -> Result<Vec<GraphSummary>, MemoryError>
Source§async fn delete_graph(&self, id: &str) -> Result<bool, MemoryError>
async fn delete_graph(&self, id: &str) -> Result<bool, MemoryError>
Delete a graph by its string UUID. Read more
Auto Trait Implementations§
impl Freeze for SqliteGraphStore
impl !RefUnwindSafe for SqliteGraphStore
impl Send for SqliteGraphStore
impl Sync for SqliteGraphStore
impl Unpin for SqliteGraphStore
impl UnsafeUnpin for SqliteGraphStore
impl !UnwindSafe for SqliteGraphStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request