pub struct SQLiteConnection { /* private fields */ }Trait Implementations§
Source§impl Connection for SQLiteConnection
impl Connection for SQLiteConnection
Source§async fn connect(url: Cow<'static, str>) -> Result<SQLiteConnection>
async fn connect(url: Cow<'static, str>) -> Result<SQLiteConnection>
Create a connection (or pool) with at least one underlying session
established to the given URL.
Source§fn begin(&mut self) -> impl Future<Output = Result<SQLiteTransaction<'_>>>
fn begin(&mut self) -> impl Future<Output = Result<SQLiteTransaction<'_>>>
Begin a transaction scope tied to the current connection.
fn disconnect(self) -> impl Future<Output = Result<(), Error>>
Source§impl Executor for SQLiteConnection
impl Executor for SQLiteConnection
Source§type Driver = SQLiteDriver
type Driver = SQLiteDriver
Underlying driver type supplying SQL dialect + I/O.
Source§async fn prepare(&mut self, sql: String) -> Result<Query<Self::Driver>>
async fn prepare(&mut self, sql: String) -> Result<Query<Self::Driver>>
Prepare a query (e.g. statement caching / parameter binding) returning a
Query. Read moreSource§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 an already prepared query, streaming heterogeneous
QueryResult items. Read moreSource§fn fetch<'s>(
&'s mut self,
query: impl AsQuery<Self::Driver> + 's,
) -> impl Stream<Item = Result<RowLabeled, Error>> + Send + 's
fn fetch<'s>( &'s mut self, query: impl AsQuery<Self::Driver> + 's, ) -> impl Stream<Item = Result<RowLabeled, Error>> + Send + 's
Run a query and stream only labeled rows, filtering out non-row results. Read more
Auto Trait Implementations§
impl Freeze for SQLiteConnection
impl RefUnwindSafe for SQLiteConnection
impl Send for SQLiteConnection
impl Sync for SQLiteConnection
impl Unpin for SQLiteConnection
impl UnwindSafe for SQLiteConnection
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