Skip to content

Commit

Permalink
chore: add PingContext to dbal.Driver interface (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr authored Nov 21, 2024
1 parent 473ec78 commit f208671
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dbal/connect.go

This file was deleted.

2 changes: 2 additions & 0 deletions dbal/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package dbal

import (
"context"
"strings"
"sync"

Expand All @@ -26,6 +27,7 @@ type Driver interface {

// Ping returns nil if the driver has connectivity and is healthy or an error otherwise.
Ping() error
PingContext(context.Context) error
}

// RegisterDriver registers a driver
Expand Down

0 comments on commit f208671

Please sign in to comment.