diff --git a/.sqlx/query-58d5a00f231f95f89dce33bb578687ca1a110479d19fd56ae5ae47c8d4a4a45e.json b/.sqlx/query-58d5a00f231f95f89dce33bb578687ca1a110479d19fd56ae5ae47c8d4a4a45e.json deleted file mode 100644 index c9c3cda..0000000 --- a/.sqlx/query-58d5a00f231f95f89dce33bb578687ca1a110479d19fd56ae5ae47c8d4a4a45e.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n WITH selected AS (\n SELECT id\n FROM durable.task\n WHERE (state IN ('ready', 'active') AND running_on IS NULL)\n OR (state = 'ready' AND running_on = $1)\n FOR UPDATE SKIP LOCKED\n LIMIT $2\n )\n UPDATE durable.task\n SET running_on = $1,\n state = 'active'\n FROM selected\n WHERE selected.id = task.id\n RETURNING\n task.id as id,\n task.name as name,\n task.created_at as created_at,\n task.wasm as \"wasm!\",\n task.data as \"data!: Json>\"\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "name", - "type_info": "Text" - }, - { - "ordinal": 2, - "name": "created_at", - "type_info": "Timestamptz" - }, - { - "ordinal": 3, - "name": "wasm!", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "data!: Json>", - "type_info": "Jsonb" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - false, - false, - false, - true, - false - ] - }, - "hash": "58d5a00f231f95f89dce33bb578687ca1a110479d19fd56ae5ae47c8d4a4a45e" -} diff --git a/.sqlx/query-2cf8e3335cff09bbdc0bcc0f292e167aa4df035772520a1243c5b5f4ee463bea.json b/.sqlx/query-a091d500a3fff5c1617746a11bb7884ac9de62131a613743cf87d1fde733280f.json similarity index 72% rename from .sqlx/query-2cf8e3335cff09bbdc0bcc0f292e167aa4df035772520a1243c5b5f4ee463bea.json rename to .sqlx/query-a091d500a3fff5c1617746a11bb7884ac9de62131a613743cf87d1fde733280f.json index 270981d..cc6c691 100644 --- a/.sqlx/query-2cf8e3335cff09bbdc0bcc0f292e167aa4df035772520a1243c5b5f4ee463bea.json +++ b/.sqlx/query-a091d500a3fff5c1617746a11bb7884ac9de62131a613743cf87d1fde733280f.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n WITH selected AS (\n SELECT id\n FROM durable.task\n WHERE (state IN ('ready', 'active') AND running_on IS NULL)\n OR (state = 'ready' AND running_on = $1)\n ORDER BY id ASC\n FOR NO KEY UPDATE SKIP LOCKED\n LIMIT $2\n )\n UPDATE durable.task\n SET running_on = $1,\n state = 'active'\n FROM selected\n WHERE selected.id = task.id\n RETURNING\n task.id as id,\n task.name as name,\n task.wasm as \"wasm!\",\n task.data as \"data!: Json>\"\n ", + "query": "\n WITH selected AS (\n SELECT id\n FROM durable.task\n WHERE (state IN ('ready', 'active') AND running_on IS NULL)\n OR (state = 'ready' AND running_on = $1)\n ORDER BY id ASC\n FOR NO KEY UPDATE SKIP LOCKED\n LIMIT $2\n )\n UPDATE durable.task\n SET running_on = $1,\n state = 'active'\n FROM selected\n WHERE selected.id = task.id\n RETURNING\n task.id as id,\n task.name as name,\n task.created_at as created_at,\n task.wasm as \"wasm!\",\n task.data as \"data!: Json>\"\n ", "describe": { "columns": [ { @@ -15,11 +15,16 @@ }, { "ordinal": 2, + "name": "created_at", + "type_info": "Timestamptz" + }, + { + "ordinal": 3, "name": "wasm!", "type_info": "Int8" }, { - "ordinal": 3, + "ordinal": 4, "name": "data!: Json>", "type_info": "Jsonb" } @@ -31,11 +36,12 @@ ] }, "nullable": [ + false, false, false, true, false ] }, - "hash": "2cf8e3335cff09bbdc0bcc0f292e167aa4df035772520a1243c5b5f4ee463bea" + "hash": "a091d500a3fff5c1617746a11bb7884ac9de62131a613743cf87d1fde733280f" }