[−][src]Trait sqlx_core::connection::Connection
Represents a single database connection rather than a pool of database connections.
Prefer running queries from Pool unless there is a specific need for a single, continuous connection.
Required methods
fn close(self) -> BoxFuture<'static, Result<()>>
Close this database connection.
fn ping(&mut self) -> BoxFuture<Result<()>>
Verifies a connection to the database is still alive.
Provided methods
fn begin(self) -> BoxFuture<'static, Result<Transaction<Self>>> where
Self: Sized,
Self: Sized,
Starts a transaction.
Returns Transaction
.
Implementors
impl<C> Connection for PoolConnection<C> where
C: Connect,
[src]
C: Connect,