We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e7abe commit 6a29e59Copy full SHA for 6a29e59
database/utils.go
@@ -75,6 +75,7 @@ func ForEachRow[Row, Id any](ctx context.Context, db *DB, idColumn string, ids [
75
if err := sem.Acquire(ctx, 1); err != nil {
76
return errors.Wrapf(err, "cannot acquire semaphore for table %q", table)
77
}
78
+ defer sem.Release(1)
79
80
query := fmt.Sprintf("%s WHERE %q IN (?)", db.BuildSelectStmt(subject, subject), idColumn)
81
stmt, args, err := sqlx.In(query, ids)
0 commit comments