diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-07 22:49:33 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-08 04:02:37 +0900 |
| commit | 5a2217f7a9d01b925c3db6491a363e6e4db9ca42 (patch) | |
| tree | 9b6dcc019834a720a97348d26f1942eb05e84ec1 /backend/db/query.sql.go | |
| parent | d799993a4fe0d05aa72c9a48d4a76c6db2240038 (diff) | |
| download | phperkaigi-2025-albatross-5a2217f7a9d01b925c3db6491a363e6e4db9ca42.tar.gz phperkaigi-2025-albatross-5a2217f7a9d01b925c3db6491a363e6e4db9ca42.tar.zst phperkaigi-2025-albatross-5a2217f7a9d01b925c3db6491a363e6e4db9ca42.zip | |
feat(backend): rename testcase_executions to testcase_results
Diffstat (limited to 'backend/db/query.sql.go')
| -rw-r--r-- | backend/db/query.sql.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/db/query.sql.go b/backend/db/query.sql.go index eefa8a0..6c78267 100644 --- a/backend/db/query.sql.go +++ b/backend/db/query.sql.go @@ -36,12 +36,12 @@ func (q *Queries) CreateSubmission(ctx context.Context, arg CreateSubmissionPara return submission_id, err } -const createTestcaseExecution = `-- name: CreateTestcaseExecution :exec -INSERT INTO testcase_executions (submission_id, testcase_id, status, stdout, stderr) +const createTestcaseResult = `-- name: CreateTestcaseResult :exec +INSERT INTO testcase_results (submission_id, testcase_id, status, stdout, stderr) VALUES ($1, $2, $3, $4, $5) ` -type CreateTestcaseExecutionParams struct { +type CreateTestcaseResultParams struct { SubmissionID int32 TestcaseID int32 Status string @@ -49,8 +49,8 @@ type CreateTestcaseExecutionParams struct { Stderr string } -func (q *Queries) CreateTestcaseExecution(ctx context.Context, arg CreateTestcaseExecutionParams) error { - _, err := q.db.Exec(ctx, createTestcaseExecution, +func (q *Queries) CreateTestcaseResult(ctx context.Context, arg CreateTestcaseResultParams) error { + _, err := q.db.Exec(ctx, createTestcaseResult, arg.SubmissionID, arg.TestcaseID, arg.Status, |
