| 28 | const indent = " " |
| 29 | |
| 30 | type PostgresDatabase struct { |
| 31 | config database.Config |
| 32 | generatorConfig database.GeneratorConfig |
| 33 | db *sql.DB |
| 34 | defaultSchema *string |
| 35 | hasConperiod *bool // cached: whether pg_constraint has conperiod column (PG18+) |
| 36 | } |
| 37 | |
| 38 | func NewDatabase(config database.Config) (database.Database, error) { |
| 39 | dsn := postgresBuildDSN(config) |
nothing calls this directly
no outgoing calls
no test coverage detected