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; 5],
delete_all: [Statement; 4],
}Available on crate features
tokio and 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; 5]Statements run for a Clear op. They wipe the in-flight tables (outbox,
pubrel, incoming) and change the filter rows as
FilterState::after_clear describes.
delete_all: [Statement; 4]Implementations§
§impl Statements
impl Statements
Auto Trait Implementations§
impl !Freeze for Statements
impl !RefUnwindSafe for Statements
impl !UnwindSafe for Statements
impl Send for Statements
impl Sync for Statements
impl Unpin for Statements
impl UnsafeUnpin 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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