MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / ConnectDB

Function ConnectDB

database/db.go:90–92  ·  view source on GitHub ↗

ConnectDB establishes a database connection with pooling.

(dsConfig config.DataSourceConfig)

Source from the content-addressed store, hash-verified

88
89// ConnectDB establishes a database connection with pooling.
90func ConnectDB(dsConfig config.DataSourceConfig) (*sql.DB, error) {
91 return pgconn.ConnectDB(dsConfig)
92}

Callers 3

migrateUpCommandsFunction · 0.92
migrateDownCommandsFunction · 0.92
TestConnectDB_FailureFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestConnectDB_FailureFunction · 0.56