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

package querytest

import (
	"context"
)

const barExists = `-- name: BarExists :one
SELECT
    EXISTS (
        SELECT
            1
        FROM
            bar
        where
            id = ?
    )
`

func (q *Queries) BarExists(ctx context.Context, id int64) (int64, error) {
	row := q.db.QueryRowContext(ctx, barExists, id)
	var column_1 int64
	err := row.Scan(&column_1)
	return column_1, err
}
