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 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 durability_tier(&self) -> DurabilityTier
fn requires_durable_attachment_store(&self) -> bool
fn scoped<'run>( &'run self, scope: EffectScope, ) -> Result<ScopedEffectController<'run>, RuntimeError>
fn scoped_static( &self, scope: EffectScope, ) -> 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