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