xitca_postgres::dev

Trait Prepare

source
pub trait Prepare: Query + Sync {
    // Required methods
    fn _get_type(
        &self,
        oid: Oid,
    ) -> Pin<Box<dyn Future<Output = Result<Type, Error>> + Send + '_>>;
    fn _get_type_blocking(&self, oid: Oid) -> Result<Type, Error>;
}
Expand description

trait generic over preparing statement and canceling of prepared statement

Required Methods§

source

fn _get_type( &self, oid: Oid, ) -> Pin<Box<dyn Future<Output = Result<Type, Error>> + Send + '_>>

source

fn _get_type_blocking(&self, oid: Oid) -> Result<Type, Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Prepare for Arc<Client>

source§

fn _get_type( &self, oid: Oid, ) -> Pin<Box<dyn Future<Output = Result<Type, Error>> + Send + '_>>

source§

fn _get_type_blocking(&self, oid: Oid) -> Result<Type, Error>

Implementors§