pub struct SQLiteTransaction<'c> { /* private fields */ }Implementations§
Source§impl<'c> SQLiteTransaction<'c>
impl<'c> SQLiteTransaction<'c>
pub async fn new(connection: &'c mut SQLiteConnection) -> Result<Self>
Trait Implementations§
Source§impl<'c> Executor for SQLiteTransaction<'c>
impl<'c> Executor for SQLiteTransaction<'c>
Source§type Driver = SQLiteDriver
type Driver = SQLiteDriver
Associated driver.
Source§fn accepts_multiple_statements(&self) -> bool
fn accepts_multiple_statements(&self) -> bool
Supports multiple statements per request.
Source§fn do_prepare(
&mut self,
sql: String,
) -> impl Future<Output = Result<Query<Self::Driver>>> + Send
fn do_prepare( &mut self, sql: String, ) -> impl Future<Output = Result<Query<Self::Driver>>> + Send
Actual implementation for
prepare.Source§fn run<'s>(
&'s mut self,
query: impl AsQuery<Self::Driver> + 's,
) -> impl Stream<Item = Result<QueryResult>> + Send
fn run<'s>( &'s mut self, query: impl AsQuery<Self::Driver> + 's, ) -> impl Stream<Item = Result<QueryResult>> + Send
Execute a query, streaming
QueryResult (rows or affected counts).Source§fn fetch<'s>(
&'s mut self,
query: impl AsQuery<Self::Driver> + 's,
) -> impl Stream<Item = Result<Row>> + Send + 's
fn fetch<'s>( &'s mut self, query: impl AsQuery<Self::Driver> + 's, ) -> impl Stream<Item = Result<Row>> + Send + 's
Execute a query yielding
Row from the resulting stream (filtering out RowsAffected).Source§fn execute<'s>(
&'s mut self,
query: impl AsQuery<Self::Driver> + 's,
) -> impl Future<Output = Result<RowsAffected>> + Send
fn execute<'s>( &'s mut self, query: impl AsQuery<Self::Driver> + 's, ) -> impl Future<Output = Result<RowsAffected>> + Send
Execute and aggregate affected rows counter.
Auto Trait Implementations§
impl<'c> Freeze for SQLiteTransaction<'c>
impl<'c> RefUnwindSafe for SQLiteTransaction<'c>
impl<'c> Send for SQLiteTransaction<'c>
impl<'c> Sync for SQLiteTransaction<'c>
impl<'c> Unpin for SQLiteTransaction<'c>
impl<'c> UnsafeUnpin for SQLiteTransaction<'c>
impl<'c> !UnwindSafe for SQLiteTransaction<'c>
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