MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / Connection

Method Connection

pkg/management/postgres/pool/pool.go:38–38  ·  view source on GitHub ↗

Connection gets the connection for the given database

(dbname string)

Source from the content-addressed store, hash-verified

36type Pooler interface {
37 // Connection gets the connection for the given database
38 Connection(dbname string) (*sql.DB, error)
39 // GetDsn returns the connection string for a given database
40 GetDsn(dbname string) string
41 // ShutdownConnections closes every database connection

Callers 15

ConfigureNewInstanceMethod · 0.65
GetSuperUserDBMethod · 0.65
GetMetricsDBMethod · 0.65
GetTemplateDBMethod · 0.65
importRoleInheritanceMethod · 0.65
getRoleInheritanceMethod · 0.65
getDatabaseListMethod · 0.65
importDatabaseContentMethod · 0.65
databaseExistsMethod · 0.65
analyzeMethod · 0.65

Implementers 5

fakePoolerpkg/management/postgres/suite_test.go
fakePoolerpkg/management/postgres/logicalimport/
ConnectionPoolpkg/management/postgres/pool/pool.go
fakePoolerpkg/management/pgbouncer/metricsserver
fakePoolerinternal/pgbouncer/management/controll

Calls

no outgoing calls

Tested by

no test coverage detected