aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-30 00:18:53 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-30 00:18:53 +0200
commit5b5fc09a62c3c82f30e78eb49501d10c3cc0c172 (patch)
treea48e9fb6e838c9cbaf2fa7ce304091531c9a6e44
parentb0c7e5a3bd1e590d49f793da65a74d646eadb538 (diff)
downloadgo-oblast-5b5fc09a62c3c82f30e78eb49501d10c3cc0c172.tar.gz
one more TODO
-rw-r--r--oblast.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/oblast.go b/oblast.go
index 338f245..059911b 100644
--- a/oblast.go
+++ b/oblast.go
@@ -140,6 +140,10 @@ type Handle interface {
QueryRow(query string, args ...any) *sql.Row
}
+// TODO: investigate if we can extend type Handle to cover types github.com/jackc/pgx.{Conn,Tx}
+// - those have all these methods, but with different return types that act mostly in the same way
+// - a significant departure is that their Prepare() works wildly differently
+
// static assertion that the respective types implement the interface
var (
_ Handle = &sql.DB{}