Skip to main content

encode_postgres_row_with_control

Function encode_postgres_row_with_control 

Source
pub fn encode_postgres_row_with_control<'v>(
    fields: impl ExactSizeIterator<Item = (Option<&'v Value>, Option<&'v ColumnType>)> + Clone,
    format: ResultFormat,
    engine: Option<&dyn EngineHook>,
    control: &ProductionControl<'_>,
) -> Result<Produced<Vec<u8>>, SQLError>
Expand description

Encode the DataRow payload (column count, field lengths and field bytes), excluding the transport message header. Only this row and the current field’s conversion scratch are retained.