Skip to main content

bind_start

Function bind_start 

Source
pub fn bind_start(
    buf: &mut BytesMut,
    portal: &str,
    statement: &str,
    param_count: usize,
) -> Result<usize, Error>
Expand description

Starts a Bind message; call write_param for each value, then bind_finish.

All parameters use the binary format, so one format code is written per parameter. Returns the offset of the length field, to be passed to bind_finish.

ยงErrors

Returns Error::Encode when more than MAX_VALUE_COUNT parameters are supplied.