Skip to main content

decode_text_to_postgres_value

Function decode_text_to_postgres_value 

Source
pub fn decode_text_to_postgres_value(
    text: &str,
    type_oid: u32,
) -> Result<PostgresValue>
Expand description

Decode a pgoutput/text column into a PostgresValue.

Unknown or unparseable values fall back to Text rather than hard-failing, except where a clear type-specific parse is expected and fails in a way that callers may want to handle (still returns Ok with Text fallback for safety).