pub struct SeaOrmCheckpointStore { /* private fields */ }Expand description
SeaORM-backed implementation of CheckpointStore that writes to the
graph_sync_checkpoints table.
Implementations§
Source§impl SeaOrmCheckpointStore
impl SeaOrmCheckpointStore
pub fn new(db: Arc<DatabaseConnection>) -> Self
Trait Implementations§
Source§impl CheckpointStore for SeaOrmCheckpointStore
impl CheckpointStore for SeaOrmCheckpointStore
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<DateTime<Utc>>, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<DateTime<Utc>>, DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read the timestamp stored under
key, or None if missing.Source§fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
ts: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
ts: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), DatabaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write
ts under key, overwriting any previous value.Auto Trait Implementations§
impl Freeze for SeaOrmCheckpointStore
impl RefUnwindSafe for SeaOrmCheckpointStore
impl Send for SeaOrmCheckpointStore
impl Sync for SeaOrmCheckpointStore
impl Unpin for SeaOrmCheckpointStore
impl UnsafeUnpin for SeaOrmCheckpointStore
impl UnwindSafe for SeaOrmCheckpointStore
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