Postgres
how to configure preen to connect to Postgres databases.
Preen uses the pgx library to connect to Postgres databases.
Example Preen Source Configuration
Postgres Models
Postgres models are defined as a YAML file that contains a SQL query.
Postgres Type Mappings
A comprehensive list of Postgres type mappings can be found here. We use the pgtype library to map Postgres types to Go types, with a few custom mappings for things like float64
, duration
, and time
types.
Code References
Last updated