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
impl GenericClient for Client
source§async fn execute<T>(
&self,
query: &T,
params: &[&(dyn ToSql + Sync)]
) -> Result<u64, Error>
async fn execute<T>( &self, query: &T, params: &[&(dyn ToSql + Sync)] ) -> Result<u64, Error>
Like
Client::execute
.source§async fn execute_raw<P, I, T>(
&self,
statement: &T,
params: I
) -> Result<u64, Error>where
T: ?Sized + ToStatement + Sync + Send,
P: BorrowToSql,
I: IntoIterator<Item = P> + Sync + Send,
I::IntoIter: ExactSizeIterator,
async fn execute_raw<P, I, T>(
&self,
statement: &T,
params: I
) -> Result<u64, Error>where
T: ?Sized + ToStatement + Sync + Send,
P: BorrowToSql,
I: IntoIterator<Item = P> + Sync + Send,
I::IntoIter: ExactSizeIterator,
Like
Client::execute_raw
.source§async fn query<T>(
&self,
query: &T,
params: &[&(dyn ToSql + Sync)]
) -> Result<Vec<Row>, Error>
async fn query<T>( &self, query: &T, params: &[&(dyn ToSql + Sync)] ) -> Result<Vec<Row>, Error>
Like
Client::query
.source§async fn query_one<T>(
&self,
statement: &T,
params: &[&(dyn ToSql + Sync)]
) -> Result<Row, Error>
async fn query_one<T>( &self, statement: &T, params: &[&(dyn ToSql + Sync)] ) -> Result<Row, Error>
Like
Client::query_one
.source§async fn query_opt<T>(
&self,
statement: &T,
params: &[&(dyn ToSql + Sync)]
) -> Result<Option<Row>, Error>
async fn query_opt<T>( &self, statement: &T, params: &[&(dyn ToSql + Sync)] ) -> Result<Option<Row>, Error>
Like
Client::query_opt
.source§async fn query_raw<T, P, I>(
&self,
statement: &T,
params: I
) -> Result<RowStream, Error>where
T: ?Sized + ToStatement + Sync + Send,
P: BorrowToSql,
I: IntoIterator<Item = P> + Sync + Send,
I::IntoIter: ExactSizeIterator,
async fn query_raw<T, P, I>(
&self,
statement: &T,
params: I
) -> Result<RowStream, Error>where
T: ?Sized + ToStatement + Sync + Send,
P: BorrowToSql,
I: IntoIterator<Item = P> + Sync + Send,
I::IntoIter: ExactSizeIterator,
Like
Client::query_raw
.source§async fn prepare_typed(
&self,
query: &str,
parameter_types: &[Type]
) -> Result<Statement, Error>
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>
async fn prepare_cached(&self, query: &str) -> Result<Statement, Error>
Like
Client::prepare_cached
.source§async fn prepare_typed_cached(
&self,
query: &str,
types: &[Type]
) -> Result<Statement, Error>
async fn prepare_typed_cached( &self, query: &str, types: &[Type] ) -> Result<Statement, Error>
source§async fn transaction(&mut self) -> Result<Transaction<'_>, Error>
async fn transaction(&mut self) -> Result<Transaction<'_>, Error>
Like
Client::transaction
.