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:
parent
5a31336efb
commit
374a8c0a6f
@ -1,7 +1,4 @@
|
|||||||
|
|
||||||
-- Jobs / Tasks queries
|
|
||||||
--
|
|
||||||
|
|
||||||
-- name: CreateJob :exec
|
-- name: CreateJob :exec
|
||||||
INSERT INTO jobs (
|
INSERT INTO jobs (
|
||||||
created_at,
|
created_at,
|
||||||
|
@ -64,7 +64,6 @@ func (q *Queries) CountWorkersFailingTask(ctx context.Context, taskID int64) (in
|
|||||||
}
|
}
|
||||||
|
|
||||||
const createJob = `-- name: CreateJob :exec
|
const createJob = `-- name: CreateJob :exec
|
||||||
|
|
||||||
INSERT INTO jobs (
|
INSERT INTO jobs (
|
||||||
created_at,
|
created_at,
|
||||||
uuid,
|
uuid,
|
||||||
@ -93,7 +92,6 @@ type CreateJobParams struct {
|
|||||||
StorageShamanCheckoutID string
|
StorageShamanCheckoutID string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Jobs / Tasks queries
|
|
||||||
func (q *Queries) CreateJob(ctx context.Context, arg CreateJobParams) error {
|
func (q *Queries) CreateJob(ctx context.Context, arg CreateJobParams) error {
|
||||||
_, err := q.db.ExecContext(ctx, createJob,
|
_, err := q.db.ExecContext(ctx, createJob,
|
||||||
arg.CreatedAt,
|
arg.CreatedAt,
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
|
|
||||||
-- Worker queries
|
|
||||||
--
|
|
||||||
|
|
||||||
-- name: CreateWorker :one
|
-- name: CreateWorker :one
|
||||||
INSERT INTO workers (
|
INSERT INTO workers (
|
||||||
created_at,
|
created_at,
|
||||||
|
@ -27,7 +27,6 @@ func (q *Queries) AddWorkerTagMembership(ctx context.Context, arg AddWorkerTagMe
|
|||||||
}
|
}
|
||||||
|
|
||||||
const createWorker = `-- name: CreateWorker :one
|
const createWorker = `-- name: CreateWorker :one
|
||||||
|
|
||||||
INSERT INTO workers (
|
INSERT INTO workers (
|
||||||
created_at,
|
created_at,
|
||||||
uuid,
|
uuid,
|
||||||
@ -79,7 +78,6 @@ type CreateWorkerParams struct {
|
|||||||
CanRestart bool
|
CanRestart bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// Worker queries
|
|
||||||
func (q *Queries) CreateWorker(ctx context.Context, arg CreateWorkerParams) (int64, error) {
|
func (q *Queries) CreateWorker(ctx context.Context, arg CreateWorkerParams) (int64, error) {
|
||||||
row := q.db.QueryRowContext(ctx, createWorker,
|
row := q.db.QueryRowContext(ctx, createWorker,
|
||||||
arg.CreatedAt,
|
arg.CreatedAt,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user