Struct Statements
struct Statements {
insert_outbox: Statement,
delete_outbox: Statement,
mark_sent: Statement,
insert_pubrel: Statement,
delete_pubrel: Statement,
insert_incoming: Statement,
delete_incoming: Statement,
insert_filter: Statement,
delete_filter: Statement,
clear: [Statement; 6],
}Available on crate feature
turso only.Expand description
The mutating statements, prepared once and reused on every flush.
Fields§
§insert_outbox: Statement§delete_outbox: Statement§mark_sent: Statement§insert_pubrel: Statement§delete_pubrel: Statement§insert_incoming: Statement§delete_incoming: Statement§insert_filter: Statement§delete_filter: Statement§clear: [Statement; 6]Statements run for a Clear op. They wipe the in-flight tables (outbox,
pubrel, incoming) and settle the per-filter table the same way
InMemorySession::clear_in_flight does: drop Subscribing and
transient Unsubscribing rows, and revert a previously-subscribed
Unsubscribing row to Subscribed. Confirmed subscriptions survive;
in-flight requests do not. This keeps the turso backend consistent with
the file/in-memory stores (which replay Clear through
clear_in_flight).
Implementations§
§impl Statements
impl Statements
Auto Trait Implementations§
impl !Freeze for Statements
impl !RefUnwindSafe for Statements
impl Send for Statements
impl Sync for Statements
impl Unpin for Statements
impl !UnwindSafe for Statements
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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