Skip to main content

Module encode

Module encode 

Source
Expand description

Decodes PostgreSQL TEXT-format values into JSON, lossless or capped.

Structs§

EncodeLimits
Size caps for one encoded value.
EncodeStats
Counters for values that were cut or fell back to raw text.
TypeInfo

Enums§

TypeKind
How a value of a type is decoded.

Constants§

TRUNCATION_MARK
The text that starts the marker after a cut value; the masks strip it by this same constant.

Functions§

builtin_type
Built-in type by OID; None for anything else.
dedup_columns
Renames duplicate result columns; returns (final name, original name if renamed).
encode_value
Encodes one non-NULL value. raw may be a prefix of the value; full_len is its real length. Password hashes in the kept bytes are replaced before the value is decoded or cut again.