pub struct SqliteEffectHost { /* private fields */ }Expand description
Deployment-level SQLite effect host.
This host persists runtime effect history in a local SQLite database and
returns scoped controllers that replay completed outcomes by
(scope_id, replay_key).
Implementations§
Source§impl SqliteEffectHost
impl SqliteEffectHost
pub async fn open(path: &Path) -> Result<Self>
pub async fn open_with_options( path: &Path, options: SqliteEffectReplayOptions, ) -> Result<Self>
pub async fn memory() -> Result<Self>
pub async fn memory_with_options( options: SqliteEffectReplayOptions, ) -> Result<Self>
Sourcepub fn start_replay(&self)
pub fn start_replay(&self)
Force strict replay mode: missing effect history fails instead of executing locally. Normal operation still replays any completed row.
Trait Implementations§
Source§impl AwaitEventResolver for SqliteEffectHost
impl AwaitEventResolver for SqliteEffectHost
fn durability_tier(&self) -> DurabilityTier
fn requires_durable_attachment_store(&self) -> bool
fn supports_durable_effects(&self) -> bool
fn await_event_key<'life0, 'life1, 'async_trait>(
&'life0 self,
_scope: &'life1 ExecutionScope,
_wait: AwaitEventWaitIdentity,
) -> Pin<Box<dyn Future<Output = Result<AwaitEventKey, RuntimeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn resolve_await_event<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 AwaitEventKey,
_resolution: Resolution,
) -> Pin<Box<dyn Future<Output = Result<ResolveOutcome, RuntimeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn await_await_event<'life0, 'life1, 'async_trait>(
&'life0 self,
_key: &'life1 AwaitEventKey,
_cancel: CancellationToken,
_deadline: Option<Instant>,
) -> Pin<Box<dyn Future<Output = Result<Resolution, RuntimeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn revoke_await_events_for_session<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Source§fn cancel_await_events_for_session<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn cancel_await_events_for_session<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Cancel every outstanding durable wait for
session_id without
deleting the session: each waiter receives a terminal
Resolution::Cancelled instead of hanging, late resolves observe
that terminal, and waits registered afterwards behave normally — in
contrast to revoke_await_events_for_session,
which tombstones the session’s waits forever. Read moreSource§impl Clone for SqliteEffectHost
impl Clone for SqliteEffectHost
Source§fn clone(&self) -> SqliteEffectHost
fn clone(&self) -> SqliteEffectHost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl EffectHost for SqliteEffectHost
impl EffectHost for SqliteEffectHost
fn scoped<'run>( &'run self, scope: ExecutionScope, ) -> Result<ScopedEffectController<'run>, RuntimeError>
fn scoped_static( &self, scope: ExecutionScope, ) -> Result<Option<ScopedEffectController<'static>>, RuntimeError>
Auto Trait Implementations§
impl Freeze for SqliteEffectHost
impl RefUnwindSafe for SqliteEffectHost
impl Send for SqliteEffectHost
impl Sync for SqliteEffectHost
impl Unpin for SqliteEffectHost
impl UnsafeUnpin for SqliteEffectHost
impl UnwindSafe for SqliteEffectHost
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