pub fn write_param(
buf: &mut BytesMut,
value: Option<&[u8]>,
) -> Result<(), Error>Expand description
Writes one Bind parameter; None is encoded as SQL NULL.
§Errors
Returns Error::Encode when the value is larger than 2 GiB and cannot be
expressed in the protocol’s 32-bit length prefix.