pub struct MemberWrite<'write> { /* private fields */ }Expand description
The app’s SQL as a member begins, in one write with the membership. The
creator’s first write runs on it, inside create_store, after slot 1 has
registered the creator and their device and made the circles the app
asked for, and before the store is visible (§10.3). It offers the app’s
SQL only: no operation, file or administrative step exists on it, so what
it commits is the member’s own rows and nothing in the store’s
membership.
Implementations§
Source§impl<'write> MemberWrite<'write>
impl<'write> MemberWrite<'write>
Sourcepub fn execute<P: Params>(&self, sql: &str, params: P) -> SqliteResult<usize>
pub fn execute<P: Params>(&self, sql: &str, params: P) -> SqliteResult<usize>
Execute one app statement with parameters.
Sourcepub fn execute_batch(&self, sql: &str) -> SqliteResult<()>
pub fn execute_batch(&self, sql: &str) -> SqliteResult<()>
Execute app statements within this write’s transaction.
Sourcepub fn query_row<T, P, F>(
&self,
sql: &str,
params: P,
map: F,
) -> SqliteResult<T>
pub fn query_row<T, P, F>( &self, sql: &str, params: P, map: F, ) -> SqliteResult<T>
Map one app row, including changes already made by this write.
Sourcepub fn query<T, P, F>(
&self,
sql: &str,
params: P,
map: F,
) -> SqliteResult<Vec<T>>
pub fn query<T, P, F>( &self, sql: &str, params: P, map: F, ) -> SqliteResult<Vec<T>>
Map all app rows produced by a query within this write.
Trait Implementations§
Source§impl SqlRead for MemberWrite<'_>
impl SqlRead for MemberWrite<'_>
Auto Trait Implementations§
impl<'write> !RefUnwindSafe for MemberWrite<'write>
impl<'write> !Send for MemberWrite<'write>
impl<'write> !Sync for MemberWrite<'write>
impl<'write> !UnwindSafe for MemberWrite<'write>
impl<'write> Freeze for MemberWrite<'write>
impl<'write> Unpin for MemberWrite<'write>
impl<'write> UnsafeUnpin for MemberWrite<'write>
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 moreCreates a shared type from an unshared type.