Struct sea_orm::SqlxMySqlPoolConnection [−][src]
pub struct SqlxMySqlPoolConnection { /* fields omitted */ }Expand description
Defines a sqlx MySQL pool
Implementations
Execute a Statement on a MySQL 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 SqlxMySqlPoolConnection
impl Send for SqlxMySqlPoolConnection
impl Sync for SqlxMySqlPoolConnection
impl Unpin for SqlxMySqlPoolConnection
impl !UnwindSafe for SqlxMySqlPoolConnection
Blanket Implementations
Mutably borrows from an owned value. Read more