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

package querytest

import (
	"context"
)

const listCalories = `-- name: ListCalories :many
SELECT id FROM calories
`

func (q *Queries) ListCalories(ctx context.Context) ([]string, error) {
	rows, err := q.db.Query(ctx, listCalories)
	if err != nil {
		return nil, err
	}
	defer rows.Close()
	var items []string
	for rows.Next() {
		var id string
		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
}

const listCampuses = `-- name: ListCampuses :many
SELECT id FROM campus
`

func (q *Queries) ListCampuses(ctx context.Context) ([]string, error) {
	rows, err := q.db.Query(ctx, listCampuses)
	if err != nil {
		return nil, err
	}
	defer rows.Close()
	var items []string
	for rows.Next() {
		var id string
		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
}

const listMetadata = `-- name: ListMetadata :many
SELECT id FROM product_meta
`

func (q *Queries) ListMetadata(ctx context.Context) ([]string, error) {
	rows, err := q.db.Query(ctx, listMetadata)
	if err != nil {
		return nil, err
	}
	defer rows.Close()
	var items []string
	for rows.Next() {
		var id string
		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
}

const listStudents = `-- name: ListStudents :many
SELECT id FROM students
`

func (q *Queries) ListStudents(ctx context.Context) ([]string, error) {
	rows, err := q.db.Query(ctx, listStudents)
	if err != nil {
		return nil, err
	}
	defer rows.Close()
	var items []string
	for rows.Next() {
		var id string
		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
}
