Type Alias deadpool_postgres::Client

source ·
pub type Client = Object;
Expand description

Type alias for Object

Aliased Type§

struct Client { /* private fields */ }

Trait Implementations§

source§

impl GenericClient for Client

source§

async fn execute<T>( &self, query: &T, params: &[&(dyn ToSql + Sync)] ) -> Result<u64, Error>
where T: ?Sized + ToStatement + Sync + Send,

Like Client::execute.
source§

async fn execute_raw<P, I, T>( &self, statement: &T, params: I ) -> Result<u64, Error>

Like Client::execute_raw.
source§

async fn query<T>( &self, query: &T, params: &[&(dyn ToSql + Sync)] ) -> Result<Vec<Row>, Error>
where T: ?Sized + ToStatement + Sync + Send,

Like Client::query.
source§

async fn query_one<T>( &self, statement: &T, params: &[&(dyn ToSql + Sync)] ) -> Result<Row, Error>
where T: ?Sized + ToStatement + Sync + Send,

Like Client::query_one.
source§

async fn query_opt<T>( &self, statement: &T, params: &[&(dyn ToSql + Sync)] ) -> Result<Option<Row>, Error>
where T: ?Sized + ToStatement + Sync + Send,

Like Client::query_opt.
source§

async fn query_raw<T, P, I>( &self, statement: &T, params: I ) -> Result<RowStream, Error>

Like Client::query_raw.
source§

async fn prepare(&self, query: &str) -> Result<Statement, Error>

Like Client::prepare.
source§

async fn prepare_typed( &self, query: &str, parameter_types: &[Type] ) -> Result<Statement, Error>

Like Client::prepare_typed.
source§

async fn prepare_cached(&self, query: &str) -> Result<Statement, Error>

source§

async fn prepare_typed_cached( &self, query: &str, types: &[Type] ) -> Result<Statement, Error>

source§

async fn transaction(&mut self) -> Result<Transaction<'_>, Error>

Like Client::transaction.
source§

async fn batch_execute(&self, query: &str) -> Result<(), Error>

Like Client::batch_execute.