pub struct SqliteGraphStorage { /* private fields */ }Expand description
SQLiteGraph-based checkpoint storage (MVP version)
Implementations§
Source§impl SqliteGraphStorage
impl SqliteGraphStorage
Sourcepub fn open_with_recovery(path: impl AsRef<Path>) -> Result<Self>
pub fn open_with_recovery(path: impl AsRef<Path>) -> Result<Self>
Open with recovery - attempts to repair corrupted storage
Trait Implementations§
Source§impl CheckpointStorage for SqliteGraphStorage
impl CheckpointStorage for SqliteGraphStorage
Source§fn get(&self, id: CheckpointId) -> Result<TemporalCheckpoint>
fn get(&self, id: CheckpointId) -> Result<TemporalCheckpoint>
Retrieve a checkpoint by ID
Source§fn get_latest(
&self,
session_id: SessionId,
) -> Result<Option<TemporalCheckpoint>>
fn get_latest( &self, session_id: SessionId, ) -> Result<Option<TemporalCheckpoint>>
Get the latest checkpoint for a session
Source§fn list_by_session(
&self,
session_id: SessionId,
) -> Result<Vec<CheckpointSummary>>
fn list_by_session( &self, session_id: SessionId, ) -> Result<Vec<CheckpointSummary>>
List all checkpoints for a session
Source§fn list_by_tag(&self, tag: &str) -> Result<Vec<CheckpointSummary>>
fn list_by_tag(&self, tag: &str) -> Result<Vec<CheckpointSummary>>
List checkpoints with a specific tag
Source§fn next_sequence(&self, _session_id: SessionId) -> Result<u64>
fn next_sequence(&self, _session_id: SessionId) -> Result<u64>
Get the next sequence number for a session
Source§fn get_max_sequence(&self) -> Result<u64>
fn get_max_sequence(&self) -> Result<u64>
Get the maximum sequence number across all checkpoints
impl Send for SqliteGraphStorage
impl Sync for SqliteGraphStorage
Auto Trait Implementations§
impl !Freeze for SqliteGraphStorage
impl !RefUnwindSafe for SqliteGraphStorage
impl Unpin for SqliteGraphStorage
impl UnsafeUnpin for SqliteGraphStorage
impl !UnwindSafe for SqliteGraphStorage
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> 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 more