(ctx context.Context, rows *sql.Rows)
| 109 | } |
| 110 | |
| 111 | func rowsToUserIDs(ctx context.Context, rows *sql.Rows) (result []string, err error) { |
| 112 | defer internal.CloseAndLogIfError(ctx, rows, "closing rowsToUserIDs failed") |
| 113 | for rows.Next() { |
| 114 | var userID string |
| 115 | if err := rows.Scan(&userID); err != nil { |
| 116 | return nil, err |
| 117 | } |
| 118 | result = append(result, userID) |
| 119 | } |
| 120 | return result, rows.Err() |
| 121 | } |
no test coverage detected