From 954e0a22ad9b3d1b20a427507ddb749b014e8383 Mon Sep 17 00:00:00 2001 From: Arne Luenser Date: Wed, 20 Nov 2024 14:47:53 +0100 Subject: [PATCH] chore: add PingContext to dbal.Driver interface --- dbal/connect.go | 4 ---- dbal/driver.go | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 dbal/connect.go diff --git a/dbal/connect.go b/dbal/connect.go deleted file mode 100644 index 6733abb7..00000000 --- a/dbal/connect.go +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright © 2023 Ory Corp -// SPDX-License-Identifier: Apache-2.0 - -package dbal diff --git a/dbal/driver.go b/dbal/driver.go index 1410543a..f80fae5b 100644 --- a/dbal/driver.go +++ b/dbal/driver.go @@ -4,6 +4,7 @@ package dbal import ( + "context" "strings" "sync" @@ -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