pub trait ToParams {
// Required methods
fn param_count(&self) -> usize;
fn natural_oids(&self) -> Vec<Oid> ⓘ;
fn encode(&self, target_oids: &[Oid], buf: &mut Vec<u8>) -> Result<()>;
}Expand description
Trait for encoding multiple parameters.
Required Methods§
Sourcefn param_count(&self) -> usize
fn param_count(&self) -> usize
Number of parameters.
Sourcefn natural_oids(&self) -> Vec<Oid> ⓘ
fn natural_oids(&self) -> Vec<Oid> ⓘ
Get natural OIDs for all parameters (for exec_* with SQL string).