Expand description
PgType: a PostgreSQL-facing type that bridges Arrow, JSON values, and
SQL DDL text - the shared type-mapping vocabulary used across
Protobuf/Avro/JSON decode paths. from_arrow_type/to_arrow_type are
inverses of each other (mostly - Arrow has strictly more scalar
variants than Postgres, so from_arrow_type is lossy in the narrowing
direction by design), and from_json_value gives type inference
straight from a decoded serde_json::Value (used when a source
format’s own schema doesn’t give you a type directly, e.g. schemaless
JSON payloads).
DDL generation and table-schema bookkeeping are deliberately left out of this crate: they aren’t generic type-mapping concerns and belong in the calling application.
Enums§
- PgType
PostgreSQLdata types.