Struct sea_orm::SqlxSqlitePoolConnection [−][src]
pub struct SqlxSqlitePoolConnection { /* fields omitted */ }
Expand description
Defines a sqlx SQLite pool
Implementations
Execute a Statement on a SQLite backend
Get one result from a SQL query. Returns Option::None if no match was found
Get the results of a query returning them as a Vec<QueryResult>
Stream the results of executing a SQL query
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,
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,
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