// 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 getData = `-- name: GetData :one
SELECT key, value
FROM my_table, jsonb_each(data)
LIMIT 1
`

type GetDataRow struct {
	Key   pgtype.Text
	Value []byte
}

func (q *Queries) GetData(ctx context.Context) (GetDataRow, error) {
	row := q.db.QueryRow(ctx, getData)
	var i GetDataRow
	err := row.Scan(&i.Key, &i.Value)
	return i, err
}
