Manager: remove introduction comments from the query SQL

Remove the introductionary comments from `query_jobs.sql` and
`query_workers.sql`. Sqlc got confused by this, and placed them in the
wrong (well, not-intended-by-me) place in the generated Go code.

No functional changes.
This commit is contained in:
Sybren A. Stüvel 2024-06-08 21:35:41 +02:00
parent 5a31336efb
commit 374a8c0a6f
4 changed files with 0 additions and 10 deletions

@ -1,7 +1,4 @@
-- Jobs / Tasks queries
--
-- name: CreateJob :exec
INSERT INTO jobs (
created_at,

@ -64,7 +64,6 @@ func (q *Queries) CountWorkersFailingTask(ctx context.Context, taskID int64) (in
}
const createJob = `-- name: CreateJob :exec
INSERT INTO jobs (
created_at,
uuid,
@ -93,7 +92,6 @@ type CreateJobParams struct {
StorageShamanCheckoutID string
}
// Jobs / Tasks queries
func (q *Queries) CreateJob(ctx context.Context, arg CreateJobParams) error {
_, err := q.db.ExecContext(ctx, createJob,
arg.CreatedAt,

@ -1,7 +1,4 @@
-- Worker queries
--
-- name: CreateWorker :one
INSERT INTO workers (
created_at,

@ -27,7 +27,6 @@ func (q *Queries) AddWorkerTagMembership(ctx context.Context, arg AddWorkerTagMe
}
const createWorker = `-- name: CreateWorker :one
INSERT INTO workers (
created_at,
uuid,
@ -79,7 +78,6 @@ type CreateWorkerParams struct {
CanRestart bool
}
// Worker queries
func (q *Queries) CreateWorker(ctx context.Context, arg CreateWorkerParams) (int64, error) {
row := q.db.QueryRowContext(ctx, createWorker,
arg.CreatedAt,