Skip to main content

encode_row_json

Function encode_row_json 

Source
pub fn encode_row_json(
    table: &TableSchema,
    row_id: &str,
    values: &Map<String, Value>,
    encryption: &EncryptionConfig,
) -> Result<Vec<u8>, String>
Expand description

Encode one full row (driver JSON values keyed by column name) with the generated row codec (§2.4, §6.1). §5.11: encrypted columns are encrypted here — the encode-at-send seam — before the codec serializes them as ciphertext-envelope bytes using wire_columns.