From 0beb2f2df4461c1d18ba2a099a90d020414b8fdb Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Thu, 30 Jul 2026 22:53:28 +0200 Subject: gsql: add context.Context argument to GSQLClose() Required for pgx.Conn.Close(). --- gsql/gsql.go | 3 ++- gsql/std.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gsql/gsql.go b/gsql/gsql.go index 939194b..7df830c 100644 --- a/gsql/gsql.go +++ b/gsql/gsql.go @@ -24,7 +24,8 @@ type ConnectionHandle interface { Handle // GSQLClose closes the connection represented by this handle. - GSQLClose() error + // Once this method has been called, other methods must not be called. + GSQLClose(ctx context.Context) error // GSQLTransact executes an action within a database transaction. // The callback will be provided with a [Handle] referring to the transaction. diff --git a/gsql/std.go b/gsql/std.go index 1d61371..321f32a 100644 --- a/gsql/std.go +++ b/gsql/std.go @@ -185,7 +185,7 @@ type sqlConnectionHandle[T sqlConnection] struct { } // GSQLClose implements the [ConnectionHandle] interface. -func (h sqlConnectionHandle[T]) GSQLClose() error { +func (h sqlConnectionHandle[T]) GSQLClose(ctx context.Context) error { return h.Base.Close() } -- cgit v1.3.1 From 959b85c4f9fea2c06d08c4c8dccc8b23792690d6 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Fri, 31 Jul 2026 20:31:07 +0200 Subject: v1.12.0 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2565fa6..af15823 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ SPDX-FileCopyrightText: 2026 Stefan Majewsky SPDX-License-Identifier: Apache-2.0 --> -# v1.12.0 (TBD) +# v1.12.0 (2026-07-31) Changes: -- cgit v1.3.1