-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f46854
commit b3728e6
Showing
11 changed files
with
534 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-- name: CreateOrReplaceClass :exec | ||
REPLACE INTO student_class (uuid, name) | ||
VALUES (?, ?); | ||
|
||
-- name: FindAllClasses :many | ||
SELECT * | ||
FROM student_class | ||
LIMIT ? OFFSET ?; | ||
|
||
-- name: DeleteClassById :exec | ||
DELETE | ||
FROM student_class | ||
WHERE uuid = ?; | ||
|
||
-- name: AssignUserToClass :exec | ||
UPDATE user | ||
SET class_uuid = ? | ||
WHERE id = ?; | ||
|
||
-- name: CreateQuizClassVisibility :exec | ||
REPLACE INTO quiz_class_visibility (class_uuid, quiz_sha1) | ||
VALUES (?, ?); | ||
|
||
-- name: DeleteQuizClassVisibility :exec | ||
DELETE | ||
FROM quiz_class_visibility | ||
WHERE class_uuid = ? | ||
AND quiz_sha1 = ?; |
Oops, something went wrong.