MCPcopy Create free account
hub / github.com/encoder-run/operator / ConstructPostgresDSN

Function ConstructPostgresDSN

pkg/database/database.go:55–58  ·  view source on GitHub ↗

ConstructPostgresDSN constructs the Data Source Name for a PostgreSQL connection

(host, user, password, dbname, port, sslmode, timezone string)

Source from the content-addressed store, hash-verified

53
54// ConstructPostgresDSN constructs the Data Source Name for a PostgreSQL connection
55func ConstructPostgresDSN(host, user, password, dbname, port, sslmode, timezone string) string {
56 return fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s sslmode=%s TimeZone=%s",
57 host, user, password, dbname, port, sslmode, timezone)
58}
59
60type Object struct {
61 Hash string `gorm:"primaryKey;type:varchar(255)"`

Callers 3

semanticSearchPostgresFunction · 0.92
AddFunction · 0.92
postgresStorageStorerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected