From 4a6036d547589a837338d4ca675fa2ba7c2ec3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 19 Mar 2024 22:20:41 +0100 Subject: [PATCH] utils: make txStmt just a type alias --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 810a1d8..ee34850 100644 --- a/utils.go +++ b/utils.go @@ -28,7 +28,7 @@ type PrepareConn interface { } // txStmt is a subset of [*database/sql.Tx]. -type txStmt interface { +type txStmt = interface { StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt }