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.
fn accepts_multiple_statements(&self) -> bool
Source§fn prepare(
&mut self,
query: String,
) -> impl Future<Output = Result<Query<Self::Driver>>> + Send
fn prepare( &mut self, query: String, ) -> impl Future<Output = Result<Query<Self::Driver>>> + Send
Prepare a query for later execution.
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
Run a query, streaming
QueryResult items.Source§fn fetch<'s>(
&'s mut self,
query: impl AsQuery<Self::Driver> + 's,
) -> impl Stream<Item = Result<RowLabeled>> + Send + 's
fn fetch<'s>( &'s mut self, query: impl AsQuery<Self::Driver> + 's, ) -> impl Stream<Item = Result<RowLabeled>> + Send + 's
Stream only labeled rows (filters non-row results).
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.
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> !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