Skip to main content

encode_field_binary

Function encode_field_binary 

Source
fn encode_field_binary(
    enc: &mut DataRowEncoder,
    col: &dyn Array,
    row: usize,
    name: &str,
) -> PgWireResult<()>
Expand description

Binary-encode a single Arrow value via postgres-types ToSql.

Coverage: Int{8,16,32,64}, UInt{8,16,32,64}, Float{32,64}, Bool, Utf8/LargeUtf8, Timestamp (any unit, naive), Date32, Date64, and List<Utf8> (as text[]). UInt64 is widened to INT8 with saturation since Postgres has no unsigned 64. Any other column type yields 0A000.