Expand description
Decodes PostgreSQL TEXT-format values into JSON, lossless or capped.
Structs§
- Encode
Limits - Size caps for one encoded value.
- Encode
Stats - Counters for values that were cut or fell back to raw text.
- Type
Info
Enums§
- Type
Kind - 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.
rawmay be a prefix of the value;full_lenis its real length. Password hashes in the kept bytes are replaced before the value is decoded or cut again.