MCPcopy
hub / github.com/sqldef/sqldef / PostgresDatabase

Struct PostgresDatabase

database/postgres/database.go:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28const indent = " "
29
30type 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
38func NewDatabase(config database.Config) (database.Database, error) {
39 dsn := postgresBuildDSN(config)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected