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