Struct sea_orm::SqlxSqlitePoolConnection [−][src]
pub struct SqlxSqlitePoolConnection { /* fields omitted */ }
Expand description
Defines a sqlx SQLite pool
Implementations
This is supported on crate feature sqlx-sqlite
only.
This is supported on crate feature
sqlx-sqlite
only.Execute a Statement on a SQLite backend
This is supported on crate feature sqlx-sqlite
only.
This is supported on crate feature
sqlx-sqlite
only.Get one result from a SQL query. Returns Option::None if no match was found
This is supported on crate feature sqlx-sqlite
only.
This is supported on crate feature
sqlx-sqlite
only.Get the results of a query returning them as a Vec<QueryResult>
This is supported on crate feature sqlx-sqlite
only.
This is supported on crate feature
sqlx-sqlite
only.Stream the results of executing a SQL query
This is supported on crate feature sqlx-sqlite
only.
This is supported on crate feature
sqlx-sqlite
only.Bundle a set of SQL statements that execute together.
pub async fn transaction<F, T, E>(
&self,
callback: F
) -> Result<T, TransactionError<E>> where
F: for<'b> FnOnce(&'b DatabaseTransaction) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'b>> + Send,
T: Send,
E: Error + Send,
This is supported on crate feature sqlx-sqlite
only.
pub async fn transaction<F, T, E>(
&self,
callback: F
) -> Result<T, TransactionError<E>> where
F: for<'b> FnOnce(&'b DatabaseTransaction) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'b>> + Send,
T: Send,
E: Error + Send,
This is supported on crate feature
sqlx-sqlite
only.Create a MySQL transaction
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SqlxSqlitePoolConnection
impl Send for SqlxSqlitePoolConnection
impl Sync for SqlxSqlitePoolConnection
impl Unpin for SqlxSqlitePoolConnection
impl !UnwindSafe for SqlxSqlitePoolConnection
Blanket Implementations
Mutably borrows from an owned value. Read more