MCPcopy
hub / github.com/PatchMon/PatchMon / Health

Method Health

server-source-code/internal/database/db.go:123–125  ·  view source on GitHub ↗

Health checks database and returns nil if healthy.

(ctx context.Context)

Source from the content-addressed store, hash-verified

121
122// Health checks database and returns nil if healthy.
123func (d *DB) Health(ctx context.Context) error {
124 return d.pool.Ping(ctx)
125}
126
127// Close closes the pool.
128func (d *DB) Close() {

Callers 1

healthHandlerFunction · 0.45

Calls 1

PingMethod · 0.45

Tested by

no test coverage detected