MCPcopy Create free account
hub / github.com/Permify/permify / closeDB

Function closeDB

internal/storage/migration.go:275–279  ·  view source on GitHub ↗

closeDB cleanly closes the database connection and logs if an error occurs.

(db *PQDatabase.Postgres)

Source from the content-addressed store, hash-verified

273
274// closeDB cleanly closes the database connection and logs if an error occurs.
275func closeDB(db *PQDatabase.Postgres) {
276 if err := db.Close(); err != nil {
277 log.Printf("failed to close the database: %v", err)
278 }
279}

Callers 7

MigrateFunction · 0.85
MigrateUpFunction · 0.85
MigrateUpToFunction · 0.85
MigrateDownFunction · 0.85
MigrateDownToFunction · 0.85
MigrateResetFunction · 0.85
MigrateStatusFunction · 0.85

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected