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
Underlying driver type supplying SQL dialect + I/O.
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 (e.g. statement caching / parameter binding) returning a
Query. Read moreSource§fn run(
&mut self,
query: Query<Self::Driver>,
) -> impl Stream<Item = Result<QueryResult>> + Send
fn run( &mut self, query: Query<Self::Driver>, ) -> impl Stream<Item = Result<QueryResult>> + Send
Run an already prepared query, streaming heterogeneous
QueryResult items. Read moreSource§fn fetch<'s>(
&'s mut self,
query: Query<Self::Driver>,
) -> impl Stream<Item = Result<RowLabeled>> + Send + 's
fn fetch<'s>( &'s mut self, query: Query<Self::Driver>, ) -> impl Stream<Item = Result<RowLabeled>> + Send + 's
Run a query and stream only labeled rows, filtering out non-row results. Read more
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