This commit is contained in:
adlerhurst
2025-07-25 20:16:08 +02:00
parent 889420f2d8
commit 5aa1553a38
6 changed files with 4 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ func (c *sqlPool) Acquire(ctx context.Context) (database.Client, error) {
// Query implements [database.Pool].
// Subtle: this method shadows the method (Pool).Query of pgxPool.Pool.
func (c *sqlPool) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
//nolint:sqlclosecheck // Rows.Close is called by the caller
//nolint:rowserrcheck // Rows.Close is called by the caller
rows, err := c.QueryContext(ctx, sql, args...)
if err != nil {
return nil, wrapError(err)