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