Documentation
¶
Overview ¶
Package postgres projects Invariant's canonical protobuf data schema into PostgreSQL DDL. Atlas can consume the emitted SQL directly; HCL is not an intermediate source of truth.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DDL ¶
func DDL(dataset *datav1.DatasetSchema) (string, []*datav1.MappingDiagnostic, error)
DDL returns complete, semicolon-terminated PostgreSQL DDL for one dataset. Nested messages, lists, maps, and dynamic protobuf JSON values are JSONB. Relational keys and indexes are deliberately not inferred from protobuf.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.