[−][src]Trait amadeus::prelude::postgres::_internal::GenericConnection
A trait allowing abstraction over connections and transactions
Required methods
fn execute(&self, query: &str, params: &[&dyn ToSql]) -> Result<u64, Error>
Like Connection::execute
.
fn query(&'a self, query: &str, params: &[&dyn ToSql]) -> Result<Rows, Error>
Like Connection::query
.
fn prepare(&'a self, query: &str) -> Result<Statement<'a>, Error>
Like Connection::prepare
.
fn prepare_cached(&'a self, query: &str) -> Result<Statement<'a>, Error>
Like Connection::prepare_cached
.
fn transaction(&'a self) -> Result<Transaction<'a>, Error>
Like Connection::transaction
.
fn batch_execute(&self, query: &str) -> Result<(), Error>
Like Connection::batch_execute
.
fn is_active(&self) -> bool
Like Connection::is_active
.