sql queries (#22)

This commit is contained in:
Pmarquez 2022-07-17 12:06:23 +00:00 committed by GitHub
parent a707ce2f5c
commit 5b61458b5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1 @@
UPDATE "fang_tasks" SET "state" = $1 , "error_message" = $2 , "updated_at" = $3 WHERE id = $4

View file

@ -0,0 +1 @@
INSERT INTO "fang_tasks" ("metadata", "created_at") VALUES ($1, $2)

View file

@ -0,0 +1 @@
INSERT INTO "fang_periodic_tasks" ("metadata", "scheduled_at" , "period_in_seconds") VALUES ($1, $2 , $3)

View file

@ -0,0 +1 @@
INSERT INTO "fang_periodic_tasks" ("metadata", "period_in_seconds") VALUES ($1, $2)

View file

@ -1 +1 @@
INSERT INTO "fang_tasks" ("metadata", "error_message", "state", task_type") VALUES ($1, $2, $3, $4);
INSERT INTO "fang_tasks" ("metadata", "error_message", "state", "task_type") VALUES ($1, $2, $3, $4)

View file

@ -0,0 +1 @@
DELETE FROM "fang_periodic_tasks"

View file

@ -0,0 +1 @@
DELETE FROM "fang_tasks"

View file

@ -0,0 +1 @@
DELETE FROM "fang_tasks" WHERE id = $1

View file

@ -0,0 +1 @@
DELETE FROM "fang_tasks" WHERE task_type = $1

View file

@ -0,0 +1 @@
UPDATE "fang_periodic_tasks" SET "scheduled_at" = $1 , "updated_at" = $2

View file

@ -0,0 +1 @@
UPDATE "fang_tasks" SET "state" = $1 , "updated_at" = $2 WHERE id = $3