Trait xitca_postgres::dev::Prepare
source · pub trait Prepare: Query + Sync {
// Required method
fn _get_type(
&self,
oid: Oid,
) -> Pin<Box<dyn Future<Output = Result<Type, Error>> + Send + '_>>;
// Provided method
fn _prepare(
&self,
query: &str,
types: &[Type],
) -> impl Future<Output = Result<Statement, Error>> + Send { ... }
}
Expand description
trait generic over preparing statement and canceling of prepared statement
Required Methods§
fn _get_type( &self, oid: Oid, ) -> Pin<Box<dyn Future<Output = Result<Type, Error>> + Send + '_>>
Provided Methods§
fn _prepare( &self, query: &str, types: &[Type], ) -> impl Future<Output = Result<Statement, Error>> + Send
Object Safety§
This trait is not object safe.