Module parameters

Source
Expand description

Prepared statement parameters.

§Example

use pgdog_plugin::prelude::*;

let params = Parameters::default();
assert_eq!(ParameterFormat::Text, params.parameter_format(0));

if let Some(param) = params.get(0) {
    let value = param.decode(params.parameter_format(0));
}

Structs§

Parameter
Prepared statement bound parameter.
Parameters
Prepared statement parameters.

Enums§

ParameterFormat
Parameter format code. 0 is text encoding (usually UTF-8), 1 is binary encoding, specific to the parameter data type.
ParameterValue
Wrapper around a decoded parameter.