diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-07-30 22:53:28 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-07-30 22:53:29 +0200 |
| commit | a9c88a040a3c8b178e50bdd4dc5fde0012b96baf (patch) | |
| tree | 2050c5a26f8f6688bbcf5ce9b7d5c47114067ddf /gsql/gsql.go | |
| parent | 81e32cec36291685b59102594c714d235726e214 (diff) | |
| download | go-gg-a9c88a040a3c8b178e50bdd4dc5fde0012b96baf.tar.gz | |
gsql: add context.Context argument to GSQLClose()
Required for pgx.Conn.Close().
Diffstat (limited to 'gsql/gsql.go')
| -rw-r--r-- | gsql/gsql.go | 3 |
1 files changed, 2 insertions, 1 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. |
