pub struct SqliteStoreConfig {
pub retention: Duration,
pub lease_ttl: Duration,
pub lease_renew: Duration,
pub lock_poll: Duration,
pub busy_timeout: Duration,
pub commit_timeout: Duration,
pub full_sync: bool,
pub max_connections: u32,
}Expand description
Store configuration.
Fields§
§retention: DurationHow long finished tasks are loaded on recovery, for key deduplication. Finished tasks that live tasks depend on are always loaded.
lease_ttl: DurationHow long a leader’s lease lasts without renewal; a standby takes over once it runs out.
lease_renew: DurationHow often the leader renews its lease (well below lease_ttl).
lock_poll: DurationHow often a standby checks whether the lease has run out.
busy_timeout: DurationHow long a statement waits for another process’s write to finish.
commit_timeout: DurationUpper bound for one commit.
full_sync: boolSync the journal to disk on every commit (default). Without it commits are faster, but a power loss can drop the most recent ones (the file stays consistent).
max_connections: u32Connections in the pool.
Trait Implementations§
Source§impl Clone for SqliteStoreConfig
impl Clone for SqliteStoreConfig
Source§impl Debug for SqliteStoreConfig
impl Debug for SqliteStoreConfig
Auto Trait Implementations§
impl Freeze for SqliteStoreConfig
impl RefUnwindSafe for SqliteStoreConfig
impl Send for SqliteStoreConfig
impl Sync for SqliteStoreConfig
impl Unpin for SqliteStoreConfig
impl UnsafeUnpin for SqliteStoreConfig
impl UnwindSafe for SqliteStoreConfig
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 more