// Code generated by sqlc. DO NOT EDIT.
// versions:
//   sqlc v1.25.0
// source: query.sql

package querytest

import (
	"context"

	"github.com/jackc/pgx/v5/pgtype"
)

const someQuery = `-- name: SomeQuery :many
select id from "computed_tables"."something"
`

func (q *Queries) SomeQuery(ctx context.Context) ([]pgtype.Int4, error) {
	rows, err := q.db.Query(ctx, someQuery)
	if err != nil {
		return nil, err
	}
	defer rows.Close()
	var items []pgtype.Int4
	for rows.Next() {
		var id pgtype.Int4
		if err := rows.Scan(&id); err != nil {
			return nil, err
		}
		items = append(items, id)
	}
	if err := rows.Err(); err != nil {
		return nil, err
	}
	return items, nil
}
