pub trait Query {
// Required method
fn _send_encode_query<S>(
&self,
stmt: S,
) -> Result<(S::Output, Response), Error>
where S: Encode;
// Provided method
fn _query<S>(
&self,
stmt: S,
) -> Result<<S::Output as IntoResponse>::Response, Error>
where S: Encode { ... }
}
Expand description
trait generic over api used for querying with typed prepared statement.
types like Transaction and CopyIn accept generic client type and they are able to use user supplied client new type to operate and therefore reduce less new types and methods boilerplate.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.