Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
561 B
Raw Blame
// Code generated by sqlc. DO NOT EDIT.
// versions:
//   sqlc v1.31.1
// source: chat_cancel.sql

package db

import (
	"context"

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

const hasTaskMessages = `-- name: HasTaskMessages :one
SELECT EXISTS (SELECT 1 FROM task_message WHERE task_id = $1)
`

// Cancellation only needs to know whether a transcript exists.
func (q *Queries) HasTaskMessages(ctx context.Context, taskID pgtype.UUID) (bool, error) {
	row := q.db.QueryRow(ctx, hasTaskMessages, taskID)
	var exists bool
	err := row.Scan(&exists)
	return exists, err
}