{ "db": "PostgreSQL", "02cf26c6e81ce21fa84fdc2a431663aa2db7efea3596d7eec984dd707b8ad010": { "describe": { "columns": [ { "name": "expiration", "ordinal": 0, "type_info": "Timestamptz" } ], "nullable": [ true ], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Varchar", "Text", "Bool" ] } }, "query": "INSERT INTO token\n (workspace_id, token, owner, label, expiration, super_admin)\n VALUES ($1, $2, $3, $4, now() + ($5 || ' seconds')::interval, $6) RETURNING expiration" }, "0355b53b1d45955ca56b2829372ce9c656d7f0ad7b8d0709161047f0d8cdc4f4": { "describe": { "columns": [ { "name": "?column?", "ordinal": 0, "type_info": "Int4" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Uuid" ] } }, "query": "DELETE FROM queue WHERE workspace_id = $1 AND id = $2 RETURNING 1" }, "04a15674cf66f2822085e65ca33ee42b8e7f3f9d63ffac0585a12368d0322252": { "describe": { "columns": [ { "name": "group_", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT group_ FROM usr_to_group where usr = $1 AND workspace_id = $2" }, "04effcc6050250a02661323c880d493982dd1bfb63ca7373e035a98c268428e2": { "describe": { "columns": [ { "name": "script_path", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ true ], "parameters": { "Left": [ "Uuid" ] } }, "query": "SELECT script_path FROM queue WHERE id = $1" }, "062859f1d0e5cfba3115f4241115753b86a4ad239708851c998ff5620ebca5b8": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid" ] } }, "query": "UPDATE queue SET last_ping = now() WHERE id = $1" }, "07551a32c49da8c0693dd39c6a63b5b2a596ccc0e52e8918160604a5e133dd32": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int4", "Text" ] } }, "query": "UPDATE worker_ping SET ping_at = now(), jobs_executed = $1 WHERE worker = $2" }, "0784bb86a503f02b9ef247a2b83a82ddfa49632552b223a9f4536a449b0a1eb8": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM resource WHERE path = $1 AND workspace_id = $2)" }, "097a576938eac385ddc2f16a00ddc69c3ca54f5a66923291730980eeeea1f8c1": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "DELETE FROM variable WHERE path = $1 AND workspace_id = $2" }, "0a7212dd507ed8f7a311724185e39ecc1809abb208a681ad711614c27baadd83": { "describe": { "columns": [ { "name": "flow_status", "ordinal": 0, "type_info": "Jsonb" } ], "nullable": [ true ], "parameters": { "Left": [ "Uuid", "Text" ] } }, "query": "SELECT flow_status FROM queue WHERE id = $1 AND workspace_id = $2" }, "0a76ed47629cac693ba7f169a1229b62bd900bc007a63fbae3fa7374ba66df65": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Bool" ] } }, "query": "INSERT INTO workspace_invite\n (workspace_id, email, is_admin)\n VALUES ($1, $2, $3)" }, "0ae9160591ae00117d20a616cfe07e38f0c32953c7e881e916c389255190b72d": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Bool" ] } }, "query": "INSERT INTO usr\n (workspace_id, email, username, is_admin)\n VALUES ($1, $2, $3, $4)" }, "0d6412bc3ebb1d58bdd9cbcef774dacf9016fa402af5c1b4e339b9a3d7163d5e": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS (SELECT 1 FROM schedule WHERE path = $1 AND workspace_id = $2 AND path != script_path)" }, "0dd3fe3ddf9cb72760687d2ee0950afdcce2d54721bfe8dba008b15e4b581956": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int4", "Text" ] } }, "query": "DELETE FROM account WHERE id = $1 AND workspace_id = $2" }, "103e321fbaa847831682b5cba2fd94f12c508ddf372f9facd18e30d00afd1ea3": { "describe": { "columns": [ { "name": "label", "ordinal": 0, "type_info": "Varchar" }, { "name": "token_prefix", "ordinal": 1, "type_info": "Text" }, { "name": "expiration", "ordinal": 2, "type_info": "Timestamptz" }, { "name": "created_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "last_used_at", "ordinal": 4, "type_info": "Timestamptz" } ], "nullable": [ true, null, true, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT label, concat(substring(token for 10)) as token_prefix, expiration, created_at, last_used_at FROM token WHERE email = $1" }, "11b1586acdfc180c5a077861ee1f7201fcbcec9d0ebada464f9d952c9c3e400d": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Bool", "Varchar", "Bool", "Varchar", "Varchar" ] } }, "query": "INSERT INTO password(email, verified, password_hash, login_type, super_admin, name, company)\n VALUES ($1, $2, $3, 'password', $4, $5, $6)" }, "11eb4dd4a2c9b0b759294dde5e8b505c5a4391aa0d8cb629c665711ee0fc04a0": { "describe": { "columns": [ { "name": "logs", "ordinal": 0, "type_info": "Text" } ], "nullable": [ null ], "parameters": { "Left": [ "Int4", "Text", "Uuid" ] } }, "query": "SELECT substr(logs, $1) as logs FROM queue WHERE workspace_id = $2 AND id = $3" }, "122090a0f89e5248a0a0f199ebd24582fdb302883aebd2da187ac0084e767ea3": { "describe": { "columns": [ { "name": "set_config", "ordinal": 0, "type_info": "Text" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT set_config('session.pgroups', $1, true)" }, "1289e7278d2a289bfaa53f00e0b6dceb195df0fb43a8ac03bc8b35939fc941dd": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Varchar" }, { "name": "name", "ordinal": 1, "type_info": "Varchar" }, { "name": "owner", "ordinal": 2, "type_info": "Varchar" }, { "name": "domain", "ordinal": 3, "type_info": "Varchar" }, { "name": "deleted", "ordinal": 4, "type_info": "Bool" }, { "name": "premium", "ordinal": 5, "type_info": "Bool" } ], "nullable": [ false, false, false, true, false, false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT * FROM workspace LIMIT $1 OFFSET $2" }, "13a10a404e892d6975d4913424880a75bfb2c6dfb5134c270c7c7225acb05db4": { "describe": { "columns": [ { "name": "value", "ordinal": 0, "type_info": "Jsonb" }, { "name": "is_cancel", "ordinal": 1, "type_info": "Bool" } ], "nullable": [ false, false ], "parameters": { "Left": [ "Uuid" ] } }, "query": "SELECT value, is_cancel FROM resume_job WHERE job = $1 ORDER BY created_at ASC" }, "15de975d9be141c9ed9647935a508492aabbbddbf986d5c5c0f0c415293c432d": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Varchar" ] } }, "query": "INSERT INTO variable\n (workspace_id, path, value, is_secret, description)\n VALUES ($1, 'g/all/pretty_secret', $2, true, 'This item is secret'), \n ($3, 'g/all/not_secret', $4, false, 'This item is not secret')" }, "1730f39fd1793d45fbb41b21389c61296a3ff7489ae12f52a19f9543173ac597": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "slack_team_id", "ordinal": 1, "type_info": "Varchar" }, { "name": "slack_name", "ordinal": 2, "type_info": "Varchar" }, { "name": "slack_command_script", "ordinal": 3, "type_info": "Varchar" } ], "nullable": [ false, true, true, true ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT * FROM workspace_settings WHERE workspace_id = $1" }, "1ad8677694aca94ee0e6da287d7cc028dcf673583a0e3e4fedd0e5d6766c5860": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text" ] } }, "query": "DELETE FROM usr WHERE email = $1" }, "1b31847d6187d6969deac5aa7b2feb169ef963449ac2d3ea06e1ed785f6d42e7": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "email", "ordinal": 1, "type_info": "Varchar" }, { "name": "is_admin", "ordinal": 2, "type_info": "Bool" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT * from workspace_invite WHERE email = $1" }, "1bf2ca894246bd716875635b2d0c294a1ce2ed21916097ea165df240f7421a1e": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Uuid" ] } }, "query": "UPDATE queue SET logs = $1 WHERE id = $2" }, "1f93b533fa6fee0db4340445da3fac8e6773bc1db1f88cd60fd3c1e8c9781eb0": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int4", "Uuid" ] } }, "query": "UPDATE queue SET suspend = $1 WHERE id = $2" }, "21cd7cbab7799baf5c381427d9b373c0bb144715eddfe54e3b01f6049d7966a2": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Varchar" }, { "name": "name", "ordinal": 1, "type_info": "Varchar" }, { "name": "username", "ordinal": 2, "type_info": "Varchar" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT workspace.id, workspace.name, usr.username\n FROM workspace, usr WHERE usr.workspace_id = workspace.id AND usr.email = $1 AND deleted = false" }, "230d58732a08164268ca10d248a93cced646632a76864b693ed2325d85b36c45": { "describe": { "columns": [ { "name": "canceled", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ false ], "parameters": { "Left": [ "Uuid" ] } }, "query": "SELECT canceled FROM queue WHERE id = $1" }, "255aafff962738317f3227ae4eb871830d89b4c12c73d8dbabe6836da124e54d": { "describe": { "columns": [ { "name": "path", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Text" ] } }, "query": "select path from script where hash = $1 AND (workspace_id = $2 OR workspace_id = 'starter')" }, "2685d46490744f3f98718ca79a9a8f7c14628e09483b90831d151f99f561a983": { "describe": { "columns": [ { "name": "now", "ordinal": 0, "type_info": "Timestamptz" } ], "nullable": [ null ], "parameters": { "Left": [] } }, "query": "SELECT now()" }, "27eb5f99dc9289670673fb999ba9e67abccba212b506c30ba47e6c4fef6d53c4": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Jsonb", "Text", "Varchar", "Bool" ] } }, "query": "INSERT INTO resource\n (workspace_id, path, value, description, resource_type, is_oauth)\n VALUES ($1, $2, $3, $4, $5, $6)" }, "28c042adef65c3055edc324fbbd2f267285d3566cbec58404983323d410ace27": { "describe": { "columns": [ { "name": "super_admin", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT super_admin FROM password WHERE email = $1" }, "28c1afcce0446817543fc47dde29b1137b2550bac4a2b6e81c72c74a84bb84fb": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Text" ] } }, "query": "UPDATE workspace_settings SET slack_command_script = $1 WHERE workspace_id = $2" }, "2a4be8334db7d39f3d954193a8b0169cc4a4a07e081d2fa61d8764879d6a8ff5": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Int8", "Text" ] } }, "query": "UPDATE script SET archived = true WHERE hash = $1 AND workspace_id = $2" }, "2bf44d998d7acd17ec6d98f81395f8bdac49f58880fbbb9350bf0142cd2efdc7": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text", "Bool" ] } }, "query": "DELETE FROM workspace_invite WHERE\n workspace_id = $1 AND email = $2 AND is_admin = $3" }, "2e11e3ef361c41e6e055dd4805cb9d5e45eaa486e35fc5f01dae311189d6800f": { "describe": { "columns": [ { "name": "language: ScriptLang", "ordinal": 0, "type_info": { "Custom": { "kind": { "Enum": [ "python3", "deno", "go" ] }, "name": "script_lang" } } } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Text" ] } }, "query": "SELECT language as \"language: ScriptLang\" FROM script WHERE hash = $1 AND (workspace_id = $2 OR workspace_id = 'starter')" }, "2e4115bb2e6c8c85ad1492ad135d6b0454b342126cb5fa17e58caf71b32ee755": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Bool", "Varchar", "Int4", "Bool" ] } }, "query": "INSERT INTO variable\n (workspace_id, path, value, is_secret, description, account, is_oauth)\n VALUES ($1, $2, $3, $4, $5, $6, $7)" }, "30d85ec4bfa7e81d2803ea9c0b638a01257ae2e9138dd82df526d28d4467df26": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid", "Uuid", "Uuid", "Jsonb", "Bool" ] } }, "query": "\n INSERT INTO resume_job\n (id, job, flow, value, is_cancel)\n VALUES ($1, $2, $3, $4, $5)\n " }, "355dcb2cbebd13f0e3bdd4929b9e431b0e6d72716d1c4f9ab6af6adce5b5e4b3": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM resource_type WHERE name = $1 AND workspace_id = $2)" }, "3d363466d79075df3f74f946eff43ca89faefca3bcdf2c533425ca3868b0369a": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "username", "ordinal": 1, "type_info": "Varchar" }, { "name": "email", "ordinal": 2, "type_info": "Varchar" }, { "name": "is_admin", "ordinal": 3, "type_info": "Bool" }, { "name": "created_at", "ordinal": 4, "type_info": "Timestamptz" }, { "name": "operator", "ordinal": 5, "type_info": "Bool" }, { "name": "disabled", "ordinal": 6, "type_info": "Bool" }, { "name": "role", "ordinal": 7, "type_info": "Varchar" } ], "nullable": [ false, false, false, false, false, false, false, true ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT * FROM usr where username = $1 AND workspace_id = $2" }, "3fabb3857c9cf2d057814b54ee54a95d01b6a7d9e89bea239b832a9d70f0044b": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text" ] } }, "query": "DELETE FROM queue WHERE schedule_path = $1 AND running = false" }, "453501fbd61efd26647baf9b6ef702ce0bc2e920914e9f08fe5f2a5f4ab03f02": { "describe": { "columns": [ { "name": "logs", "ordinal": 0, "type_info": "Text" } ], "nullable": [ null ], "parameters": { "Left": [ "Int4", "Text", "Uuid" ] } }, "query": "SELECT substr(logs, $1) as logs FROM completed_job WHERE workspace_id = $2 AND id = $3" }, "486f181a9ced2bdc7c8d93da22c9d3e229ef106174bff2c472dbe82622f382b6": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Uuid" ] } }, "query": "UPDATE queue SET logs = concat(logs, $1::text) WHERE id = $2" }, "4ad5fa2f08236507aad911a95697e84fc0c3a274ba0e928da28c4d146cf8f1a8": { "describe": { "columns": [ { "name": "is_admin", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT is_admin FROM usr where username = $1 AND workspace_id = $2" }, "4e8ff055a80cc2e6b7fd6653c0c8e9a0e4b223a4bdeab0cf43dc79ce10f635b9": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Varchar" ] } }, "query": "INSERT INTO workspace\n (id, name, owner, domain)\n VALUES ($1, $2, $3, $4)" }, "4eb6b80c410e00e8a72eced6c25cdd3ed941e7a46a0619173f272eec7f28a3c1": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "path", "ordinal": 1, "type_info": "Varchar" }, { "name": "edited_by", "ordinal": 2, "type_info": "Varchar" }, { "name": "edited_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "schedule", "ordinal": 4, "type_info": "Varchar" }, { "name": "offset_", "ordinal": 5, "type_info": "Int4" }, { "name": "enabled", "ordinal": 6, "type_info": "Bool" }, { "name": "script_path", "ordinal": 7, "type_info": "Varchar" }, { "name": "args", "ordinal": 8, "type_info": "Jsonb" }, { "name": "extra_perms", "ordinal": 9, "type_info": "Jsonb" }, { "name": "is_flow", "ordinal": 10, "type_info": "Bool" } ], "nullable": [ false, false, false, false, false, false, false, false, true, false, false ], "parameters": { "Left": [ "Varchar", "Varchar", "Bool", "Jsonb", "Text", "Text" ] } }, "query": "UPDATE schedule SET schedule = $1, script_path = $2, is_flow = $3, args = $4 WHERE path = $5 AND workspace_id = $6 RETURNING *" }, "5061c0d054bf4f028e7fe51a8f9389024c6ae4492755cadac0f7167e5300bda0": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Jsonb", "Text" ] } }, "query": "INSERT INTO resource_type\n (workspace_id, name, schema, description)\n VALUES ($1, $2, $3, $4)" }, "50d1d62e1a0044168ec485c7f69bfb88ad4ecf200b33cd99f92da969628fb9f4": { "describe": { "columns": [ { "name": "key", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT key FROM workspace_key WHERE workspace_id = $1 AND kind = 'cloud'" }, "512390fc288b9f61bf5bb80ade168b17f09a6a52068a67edcf3f1f268bd53372": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Text", "Text", "Jsonb", "Varchar", "Text" ] } }, "query": "INSERT INTO flow (workspace_id, path, summary, description, value, edited_by, edited_at, schema) VALUES ($1, $2, $3, $4, $5, $6, now(), $7::text::json)" }, "514c5feb8a29a2a6b577553d8577a46bcbb196c62d046a0568c573ce96ff3c43": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "DELETE FROM usr_to_group WHERE group_ = $1 AND workspace_id = $2" }, "5445083864b2b092b012e894bff7630a1d7b9deb8d33e9f909061f351f96844e": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "slack_team_id", "ordinal": 1, "type_info": "Varchar" }, { "name": "slack_name", "ordinal": 2, "type_info": "Varchar" }, { "name": "slack_command_script", "ordinal": 3, "type_info": "Varchar" } ], "nullable": [ false, true, true, true ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT * FROM workspace_settings WHERE slack_team_id = $1" }, "54756c6c39888feb2206b056df1c84c3bb44adc490309954359845c06b6e607c": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Timestamptz", "Bool" ] } }, "query": "INSERT INTO token\n (token, email, label, expiration, super_admin)\n VALUES ($1, $2, $3, $4, $5)" }, "58efbf34ba014b4853ef20ae400929b57c1d9de4262189274badf100d29e0649": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "name", "ordinal": 1, "type_info": "Varchar" }, { "name": "schema", "ordinal": 2, "type_info": "Jsonb" }, { "name": "description", "ordinal": 3, "type_info": "Text" } ], "nullable": [ false, false, true, true ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT * from resource_type WHERE name = $1 AND (workspace_id = $2 OR workspace_id = 'starter')" }, "5b7a1d16d8109a65479ab33d411c60d14ea91d870fdff8606d7aa4ad39f0ba00": { "describe": { "columns": [ { "name": "email", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT email FROM usr WHERE username = $1 AND workspace_id = $2" }, "5b9b58612ca0f703a5d154a76fab82ac2329aef965fa937bfab2810b6e1336a4": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "DELETE FROM group_ WHERE name = $1 AND workspace_id = $2" }, "5fee34ce48f01bb55707227548ea4d1e77ba75abfae412a902b1d8d6a1963725": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Int8", "Varchar", "Int8Array", "Text", "Text", "Text", "Varchar", "Text", "Bool", "Jsonb", "Text", { "Custom": { "kind": { "Enum": [ "python3", "deno", "go" ] }, "name": "script_lang" } }, { "Custom": { "kind": { "Enum": [ "script", "trigger", "failure", "command" ] }, "name": "script_kind" } } ] } }, "query": "INSERT INTO script (workspace_id, hash, path, parent_hashes, summary, description, content, created_by, schema, is_template, extra_perms, lock, language, kind) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9::text::json, $10, $11, $12, $13, $14)" }, "6199e8be5cb13db71108e555ea20f0b76dc38476670f9fc0667b057d2766d42e": { "describe": { "columns": [ { "name": "set_config", "ordinal": 0, "type_info": "Text" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT set_config('session.groups', $1, true)" }, "61e9662fe42506131222412ab3de48cf6485dea10aa3a2f97c0fd6322a0cb17f": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "DELETE FROM schedule WHERE path = $1 AND workspace_id = $2" }, "62432110a09e68593ac52b3174c8bfa8736d5c7c1d8c7d6bed68f0dd9e06db7b": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM usr WHERE username = $1 AND workspace_id = $2)" }, "63c4b9320681fac84ea92c25c0f6da5c9ac154dfccf575cea8145692246205c4": { "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT name from resource_type WHERE (workspace_id = $1 OR workspace_id = 'starter') ORDER BY name" }, "63f330e98051ae9d0cf5617a553f769cc98b05fdc8643839b504023b26f38aab": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "UPDATE flow SET archived = true WHERE path = $1 AND workspace_id = $2" }, "64d2318064711c2cfbaf7c5c2b02d92cc98ac8e33eb560b829c462c3159115eb": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar" ] } }, "query": "INSERT INTO workspace_key\n (workspace_id, kind, key)\n VALUES ($1, 'cloud', $2)" }, "6c63bbcb45d3f51eccaea52ec862700e1f1c2426d823abd951e1eea4fd9b85aa": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Int8", "Text" ] } }, "query": "UPDATE script SET lock_error_logs = $1 WHERE hash = $2 AND workspace_id = $3" }, "6c7186de56bcd9983a64de0c01a733e818ebc30af2377158c8a92ec66c06464c": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Bool", "Text" ] } }, "query": "UPDATE password SET super_admin = $1 WHERE email = $2" }, "6c90d5ea2a09b47b81fdab465062c25f8768b220e53bf469550a3a3697ab756a": { "describe": { "columns": [ { "name": "set_config", "ordinal": 0, "type_info": "Text" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT set_config('session.user', $1, true)" }, "6eacfedfc1ab2431c318996d2ff480a65d55fc43d8fa95aa4e2e8430722dc82d": { "describe": { "columns": [ { "name": "email", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT email FROM usr WHERE username = $1" }, "6fc2cfae9df83eb24ea33e4c9567740100f4dd2285afc3ef474fc70041b0567b": { "describe": { "columns": [ { "name": "worker", "ordinal": 0, "type_info": "Varchar" }, { "name": "worker_instance", "ordinal": 1, "type_info": "Varchar" }, { "name": "ping_at", "ordinal": 2, "type_info": "Timestamptz" }, { "name": "started_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "ip", "ordinal": 4, "type_info": "Varchar" }, { "name": "jobs_executed", "ordinal": 5, "type_info": "Int4" } ], "nullable": [ false, false, false, false, false, false ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT * FROM worker_ping ORDER BY ping_at desc LIMIT $1 OFFSET $2" }, "701f215eb14ba67a79afea15d7effc0dd394ba6c4a72c95d4560c5a377015d4e": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text" ] } }, "query": "UPDATE workspace SET deleted = true WHERE id = $1" }, "70e6ca3b5ad81f70376d31c75ba5f2b5dd94dd2f7f4cacd5a64029ccc3315d6c": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM usr WHERE workspace_id = $1 AND username = $2)" }, "752a9a95a4fbf741b0013923bfb5efff4db5ccfa8d9e6d5f821fc230fe790cc4": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Uuid" } ], "nullable": [ false ], "parameters": { "Left": [ "Varchar", "Uuid", "Bool", "Uuid", "Varchar", "Varchar", "Timestamptz", "Int8", "Varchar", "Text", "Jsonb", { "Custom": { "kind": { "Enum": [ "script", "preview", "flow", "dependencies", "flowpreview", "script_hub" ] }, "name": "job_kind" } }, "Varchar", "Jsonb", "Jsonb", "Bool", { "Custom": { "kind": { "Enum": [ "python3", "deno", "go" ] }, "name": "script_lang" } }, "Bool" ] } }, "query": "INSERT INTO queue\n (workspace_id, id, running, parent_job, created_by, permissioned_as, scheduled_for, \n script_hash, script_path, raw_code, args, job_kind, schedule_path, raw_flow, flow_status, is_flow_step, language, started_at, same_worker)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, CASE WHEN $3 THEN now() END, $18) RETURNING id" }, "765c18d77412cbb4474f4074d583b9b44681f3b9f58754662ac07a3a3470a3c5": { "describe": { "columns": [ { "name": "is_admin", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "DELETE FROM workspace_invite WHERE workspace_id = $1 AND email = $2 RETURNING is_admin" }, "77ba7207c8f5fd7156542cfd9943aa9a9fa87a652131c261f5020bab9ba6b5a3": { "describe": { "columns": [ { "name": "email", "ordinal": 0, "type_info": "Varchar" }, { "name": "login_type", "ordinal": 1, "type_info": "Text" }, { "name": "verified", "ordinal": 2, "type_info": "Bool" }, { "name": "super_admin", "ordinal": 3, "type_info": "Bool" }, { "name": "name", "ordinal": 4, "type_info": "Varchar" }, { "name": "company", "ordinal": 5, "type_info": "Varchar" } ], "nullable": [ false, null, false, false, true, true ], "parameters": { "Left": [ "Int8", "Int8" ] } }, "query": "SELECT email, login_type::text, verified, super_admin, name, company from password LIMIT $1 OFFSET $2" }, "7b1239ad6460e8f5fb41bfe12f662a779528784ec8cf3f6dcce5545ab90bf234": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "name", "ordinal": 1, "type_info": "Varchar" }, { "name": "schema", "ordinal": 2, "type_info": "Jsonb" }, { "name": "description", "ordinal": 3, "type_info": "Text" } ], "nullable": [ false, false, true, true ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT * FROM resource_type WHERE workspace_id = $1" }, "7eeac533a0d63f4e3af9d3e3123b0a73f44543e618e29e4c6a6d573852339933": { "describe": { "columns": [ { "name": "name", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT name FROM group_ WHERE workspace_id = $1 ORDER BY name desc" }, "80325b938c9cd736f0f386343e5e36c3834521ae8e004e19c408a689dc1adcf1": { "describe": { "columns": [ { "name": "path", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Varchar", "Text", "Text", "Jsonb", "Varchar", "Json", "Text", "Text" ] } }, "query": "UPDATE flow SET path = $1, summary = $2, description = $3, value = $4, edited_by = $5, edited_at = now(), schema = $6 WHERE path = $7 AND workspace_id = $8 RETURNING path" }, "808ff76fdb74482d5d3201417c8a2470e2867cb08b9a46d244653eb366d8ee5e": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Text", "Jsonb" ] } }, "query": "INSERT INTO group_ (workspace_id, name, summary, extra_perms) VALUES ($1, $2, $3, $4)" }, "8114333781add802159cd2c26d57cea40e27143606c71bf4d87dc14bb7040cd6": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Text" ] } }, "query": "UPDATE workspace SET name = $1, owner = $2, domain = $3 WHERE id = $4" }, "826c6a36020f402169cab2ebe097e9f38f416f6f080a2fe8a9b83e97c4e15150": { "describe": { "columns": [ { "name": "hash", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "UPDATE script SET archived = true WHERE path = $1 AND workspace_id = $2 RETURNING hash" }, "82f3c4cd1c1f6aea86d66f675442587684391bc32be9ab55ae20aab549b7bba5": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text", "Text" ] } }, "query": "UPDATE group_ SET summary = $1 WHERE name = $2 AND workspace_id = $3" }, "850e97afdf07f7d2bbfe33b0aaecceef6d7c736b91aaaaf60d764bd070250cba": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Uuid", "Uuid", "Varchar", "Timestamptz", "Timestamptz", "Bool", "Int8", "Varchar", "Jsonb", "Jsonb", "Text", "Text", "Bool", "Varchar", "Text", { "Custom": { "kind": { "Enum": [ "script", "preview", "flow", "dependencies", "flowpreview", "script_hub" ] }, "name": "job_kind" } }, "Varchar", "Varchar", "Jsonb", "Jsonb", "Bool", "Bool", { "Custom": { "kind": { "Enum": [ "python3", "deno", "go" ] }, "name": "script_lang" } } ] } }, "query": "INSERT INTO completed_job AS cj\n ( workspace_id\n , id\n , parent_job\n , created_by\n , created_at\n , started_at\n , duration_ms\n , success\n , script_hash\n , script_path\n , args\n , result\n , logs\n , raw_code\n , canceled\n , canceled_by\n , canceled_reason\n , job_kind\n , schedule_path\n , permissioned_as\n , flow_status\n , raw_flow\n , is_flow_step\n , is_skipped\n , language )\n VALUES ($1, $2, $3, $4, $5, $6, EXTRACT(milliseconds FROM (now() - $6)), $7, $8, $9,$10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24)\n ON CONFLICT (id) DO UPDATE SET success = $7, result = $11, logs = concat(cj.logs, $12)" }, "853788436dbe987853433e8dc83665f68bd127de31d4c807abafeead896f6ac4": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Uuid" }, { "name": "flow_status", "ordinal": 1, "type_info": "Jsonb" }, { "name": "suspend", "ordinal": 2, "type_info": "Int4" } ], "nullable": [ false, true, false ], "parameters": { "Left": [ "Uuid" ] } }, "query": "\n SELECT id, flow_status, suspend\n FROM queue\n WHERE id = ( SELECT parent_job FROM queue WHERE id = $1 UNION ALL SELECT parent_job FROM completed_job WHERE id = $1)\n FOR UPDATE\n " }, "88a3f58a1a315200fdd2e4bb8638246ee21818f8aaaf56f6e9d7ddce1490d886": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM variable WHERE path = $1 AND workspace_id = $2)" }, "88b7589a6416da8be4b26af3bf30fcfcd6aeae7bc5a37e9a735cabbe2691c570": { "describe": { "columns": [ { "name": "login_type", "ordinal": 0, "type_info": "Text" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT login_type::TEXT FROM password WHERE email = $1" }, "894336809c161cdbb42ea235eb88498db6b1715386f78f57568f01c9954f05af": { "describe": { "columns": [ { "name": "?column?", "ordinal": 0, "type_info": "Int4" } ], "nullable": [ null ], "parameters": { "Left": [ "Int8", "Text" ] } }, "query": "SELECT 1 FROM script WHERE hash = $1 AND workspace_id = $2" }, "8ad6a17eecce77f61236e0585ba89b99a32e07ad37b97662007db35acb59d139": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "name", "ordinal": 1, "type_info": "Varchar" }, { "name": "schema", "ordinal": 2, "type_info": "Jsonb" }, { "name": "description", "ordinal": 3, "type_info": "Text" } ], "nullable": [ false, false, true, true ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT * from resource_type WHERE (workspace_id = $1 OR workspace_id = 'starter') ORDER BY name" }, "8caa01546506f42740b7973a3a45e40093a06714b8524570c5143b77af4a8e19": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "path", "ordinal": 1, "type_info": "Varchar" }, { "name": "edited_by", "ordinal": 2, "type_info": "Varchar" }, { "name": "edited_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "schedule", "ordinal": 4, "type_info": "Varchar" }, { "name": "offset_", "ordinal": 5, "type_info": "Int4" }, { "name": "enabled", "ordinal": 6, "type_info": "Bool" }, { "name": "script_path", "ordinal": 7, "type_info": "Varchar" }, { "name": "args", "ordinal": 8, "type_info": "Jsonb" }, { "name": "extra_perms", "ordinal": 9, "type_info": "Jsonb" }, { "name": "is_flow", "ordinal": 10, "type_info": "Bool" } ], "nullable": [ false, false, false, false, false, false, false, false, true, false, false ], "parameters": { "Left": [ "Text", "Int8", "Int8" ] } }, "query": "SELECT * FROM schedule WHERE workspace_id = $1 ORDER BY edited_at desc LIMIT $2 OFFSET $3" }, "8d631abe38ae964edb357217463a2c1617d4b3b18a7ed0724ad1c65b95980a2c": { "describe": { "columns": [ { "name": "value", "ordinal": 0, "type_info": "Jsonb" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT value FROM flow WHERE path = $1 AND (workspace_id = $2 OR workspace_id = 'starter')" }, "8ede6fb740b145b3a8320adb789500870c7a8ec807a7b156b9ff7a15791b78f8": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "DELETE FROM usr WHERE workspace_id = $1 AND username = $2" }, "902961f15b8c7603dddf2933b5fc7cdd6e5af3545835763ccb29cdf3ac273ef0": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Text" ] } }, "query": "UPDATE password SET password_hash = $1 WHERE email = $2" }, "904457944cbfdcefa1934059bbfea015a411c739124cf06367975cfd9cd0dd0d": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "path", "ordinal": 1, "type_info": "Varchar" }, { "name": "value", "ordinal": 2, "type_info": "Jsonb" }, { "name": "description", "ordinal": 3, "type_info": "Text" }, { "name": "resource_type", "ordinal": 4, "type_info": "Varchar" }, { "name": "extra_perms", "ordinal": 5, "type_info": "Jsonb" }, { "name": "is_oauth", "ordinal": 6, "type_info": "Bool" } ], "nullable": [ false, false, true, true, false, false, false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT * from resource WHERE path = $1 AND (workspace_id = $2 OR workspace_id = 'starter')" }, "90719f6230467b08e5f2cc89271bcf5e4a6cec39e9d9b42ef3b90f09b3135b83": { "describe": { "columns": [ { "name": "email", "ordinal": 0, "type_info": "Varchar" }, { "name": "login_type", "ordinal": 1, "type_info": "Text" }, { "name": "super_admin", "ordinal": 2, "type_info": "Bool" }, { "name": "verified", "ordinal": 3, "type_info": "Bool" }, { "name": "name", "ordinal": 4, "type_info": "Varchar" }, { "name": "company", "ordinal": 5, "type_info": "Varchar" } ], "nullable": [ false, null, false, false, true, true ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT email, login_type::TEXT, super_admin, verified, name, company FROM password WHERE email = $1" }, "92ee6274b2287bc4d368bfdb47d6452df75bd265cdd891f55112df2795294dac": { "describe": { "columns": [ { "name": "count", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT COUNT(id) FROM queue WHERE permissioned_as = $1 AND workspace_id = $2" }, "9490a4388f43e45e32911f1129e623f2d73ce2da7a948fe134bea1c87cdbefd1": { "describe": { "columns": [ { "name": "value", "ordinal": 0, "type_info": "Jsonb" } ], "nullable": [ true ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT value from resource WHERE path = $1 AND (workspace_id = $2 OR workspace_id = 'starter')" }, "9a581f49d34d62550e58e6210b4bd24b7db499cc5e0350c0ce7024b3d59b13ab": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar" ] } }, "query": "INSERT INTO workspace_settings\n (workspace_id, slack_team_id, slack_name)\n VALUES ($1, $2, $3) ON CONFLICT (workspace_id) DO UPDATE SET slack_team_id = $2, slack_name = $3" }, "a34066d4a1578a13b2e322e6936ae80a0239a79148f3edce65f51a93910a1a4b": { "describe": { "columns": [ { "name": "email", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT email FROM usr where username = $1 AND workspace_id = $2" }, "a38059dc3574da498ce986c916b6d385b1f18d5bd659ef13c43fafa9daff6bda": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM flow WHERE path = $1 AND (workspace_id = $2 OR workspace_id = 'starter'))" }, "a98b2d68f023f46ab91167d3147416df672c2aed2ba5ab70e98a9da5fa47255a": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar" ] } }, "query": "INSERT INTO workspace_settings\n (workspace_id)\n VALUES ($1)" }, "aa2800113a8a8805f47cdc1dd0f29d94c546fe531e7edd3e91da4978af5442fb": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "path", "ordinal": 1, "type_info": "Varchar" }, { "name": "edited_by", "ordinal": 2, "type_info": "Varchar" }, { "name": "edited_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "schedule", "ordinal": 4, "type_info": "Varchar" }, { "name": "offset_", "ordinal": 5, "type_info": "Int4" }, { "name": "enabled", "ordinal": 6, "type_info": "Bool" }, { "name": "script_path", "ordinal": 7, "type_info": "Varchar" }, { "name": "args", "ordinal": 8, "type_info": "Jsonb" }, { "name": "extra_perms", "ordinal": 9, "type_info": "Jsonb" }, { "name": "is_flow", "ordinal": 10, "type_info": "Bool" } ], "nullable": [ false, false, false, false, false, false, false, false, true, false, false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT * FROM schedule WHERE path = $1 AND workspace_id = $2" }, "abc9f034e62ac224894173356aa69e09f3647a45d176e253e4fc8f7206f6a18d": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "name", "ordinal": 1, "type_info": "Varchar" }, { "name": "summary", "ordinal": 2, "type_info": "Text" }, { "name": "extra_perms", "ordinal": 3, "type_info": "Jsonb" } ], "nullable": [ false, false, true, false ], "parameters": { "Left": [ "Text", "Int8", "Int8" ] } }, "query": "SELECT * FROM group_ WHERE workspace_id = $1 ORDER BY name desc LIMIT $2 OFFSET $3" }, "add01e9e31d64e88b84c9505fe3de553031e581b1bb173413a9a3e3eb0817b43": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar" ] } }, "query": "INSERT INTO usr_to_group (workspace_id, usr, group_) VALUES ($1, $2, $3)" }, "b05c5f62ef4aa21d33369130cced0e9d7d128727eb58a9be7ae69cbb16bcbb27": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Text", "Bool" ] } }, "query": "INSERT INTO token\n (token, email, label, expiration, super_admin)\n VALUES ($1, $2, $3, now() + ($4 || ' hours')::interval, $5)" }, "b20977e70ebac7ccbaec5a2a1e940301dd331a5f9a4be67a27cfbff8619ac8f0": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar" ] } }, "query": "INSERT INTO usr\n (workspace_id, email, username, is_admin)\n VALUES ($1, $2, $3, true)" }, "b24c1a2587812d2fd40063328ce393377826b170a7970ba02f4057454058321b": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Bool", "Text", "Text" ] } }, "query": "UPDATE usr SET is_admin = $1 WHERE username = $2 AND workspace_id = $3" }, "b3b80de52d0931a2fdb5d38b7603a2d69cc25ab1cda413228c363a5ffd777113": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "email", "ordinal": 1, "type_info": "Varchar" }, { "name": "is_admin", "ordinal": 2, "type_info": "Bool" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT * from workspace_invite WHERE workspace_id = $1" }, "b7dd791cd69748ef51b7520f505c0c8bb1b4014a273476eddfecf1ab658a18b4": { "describe": { "columns": [ { "name": "hash", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "select hash from script where path = $1 AND (workspace_id = $2 OR workspace_id = 'starter') AND\n created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND (workspace_id = $2 OR workspace_id = 'starter')) AND\n deleted = false" }, "b87f19d248b7c5dbb57e9c6c3e4dd8a5bbb70815c06ee8e5bc8d57324eea1617": { "describe": { "columns": [ { "name": "int4", "ordinal": 0, "type_info": "Int4" } ], "nullable": [ null ], "parameters": { "Left": [ "Uuid" ] } }, "query": "SELECT (flow_status->'step')::integer FROM queue WHERE id = $1" }, "bb56e61c7cfb09c0a28fb3226dfe91704c70d9fe15eda18e6889adfd7496f80b": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int4" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Int4" ] } }, "query": "DELETE FROM account WHERE workspace_id = $1 AND id = $2 RETURNING id" }, "bc01d5ca0138527b796a373f76404b8b6e4c6d711d0f6a557f929d831b8cfd3e": { "describe": { "columns": [ { "name": "?column?", "ordinal": 0, "type_info": "Text" } ], "nullable": [ null ], "parameters": { "Left": [ "Uuid" ] } }, "query": "SELECT null FROM queue WHERE id = $1 FOR UPDATE" }, "bf1d8e043338867e1da1ed236ff6c85a566d5fd58d4b0d5c3a10454513811ba3": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text" ] } }, "query": "UPDATE workspace_settings\n SET slack_team_id = null, slack_name = null WHERE workspace_id = $1" }, "bf2aeb9a1e649106d2a084c1d628690a44573c1869a206474811215714ba97c2": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "DELETE FROM resource WHERE path = $1 AND workspace_id = $2" }, "c110717810a30b3b5b1b9179401f82ae30d96105335dcd2bc7b20e45019d2325": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Jsonb", "Jsonb", "Uuid" ] } }, "query": "\n UPDATE queue\n SET flow_status = JSONB_SET(flow_status, ARRAY['modules'], $1),\n raw_flow = JSONB_SET(raw_flow, ARRAY['modules'], $2)\n WHERE id = $3\n " }, "c213427a32e8903fff649a3e7aa8392d2215665ed04f5a8f2178861e9dba298a": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "path", "ordinal": 1, "type_info": "Varchar" }, { "name": "edited_by", "ordinal": 2, "type_info": "Varchar" }, { "name": "edited_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "schedule", "ordinal": 4, "type_info": "Varchar" }, { "name": "offset_", "ordinal": 5, "type_info": "Int4" }, { "name": "enabled", "ordinal": 6, "type_info": "Bool" }, { "name": "script_path", "ordinal": 7, "type_info": "Varchar" }, { "name": "args", "ordinal": 8, "type_info": "Jsonb" }, { "name": "extra_perms", "ordinal": 9, "type_info": "Jsonb" }, { "name": "is_flow", "ordinal": 10, "type_info": "Bool" } ], "nullable": [ false, false, false, false, false, false, false, false, true, false, false ], "parameters": { "Left": [ "Bool", "Text", "Text" ] } }, "query": "UPDATE schedule SET enabled = $1 WHERE path = $2 AND workspace_id = $3 RETURNING *" }, "c2849e67b9fea0dc46e6d7000f5a0c9dab89ae80a183d9255f8fdb356b4bc61c": { "describe": { "columns": [ { "name": "result", "ordinal": 0, "type_info": "Jsonb" } ], "nullable": [ true ], "parameters": { "Left": [ "Uuid" ] } }, "query": "SELECT result FROM completed_job WHERE id = $1" }, "c2d6cb56c1dea4498e2aab9ea9301dbbaa127602a38f57f5add4108fdc209b1a": { "describe": { "columns": [ { "name": "username", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT usr.username \n FROM usr_to_group LEFT JOIN usr ON usr_to_group.usr = usr.username \n WHERE group_ = $1 AND usr.workspace_id = $2 AND usr_to_group.workspace_id = $2" }, "c59dd666b9a316c027e8c319b80ccbab3a220d93b64357981bd4a03324dad1d0": { "describe": { "columns": [ { "name": "is_secret", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT is_secret from variable WHERE path = $1 AND workspace_id = $2" }, "c68d39492686d0fd275acf4eca3844c37d0f58647a100d24afcf090b4b13f85d": { "describe": { "columns": [ { "name": "username", "ordinal": 0, "type_info": "Varchar" } ], "nullable": [ false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT username from usr WHERE workspace_id = $1" }, "cac594031a21b4806de9c4616317d3541522ef9712a83ecff7bd8b5f6e870748": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Timestamptz", "Text", "Int4" ] } }, "query": "UPDATE account SET refresh_token = $1, expires_at = $2 WHERE workspace_id = $3 AND id = $4" }, "cb12aee5f8e04cb196d4b8fad81699fcbb1ae7b0c84090d5705b14eac76074ff": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar" ] } }, "query": "INSERT INTO group_\n VALUES ($1, 'all', 'The group that always contains all users of this workspace')" }, "cc34f0298cfdaffe892a286e6b4390c287d33298e3342ccd1e10d48a9c3cc5c0": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Uuid" }, { "name": "workspace_id", "ordinal": 1, "type_info": "Varchar" }, { "name": "last_ping", "ordinal": 2, "type_info": "Timestamptz" } ], "nullable": [ false, false, false ], "parameters": { "Left": [ "Text", { "Custom": { "kind": { "Enum": [ "script", "preview", "flow", "dependencies", "flowpreview", "script_hub" ] }, "name": "job_kind" } } ] } }, "query": "UPDATE queue SET running = false WHERE last_ping < now() - ($1 || ' seconds')::interval AND running = true AND job_kind != $2 AND same_worker = false RETURNING id, workspace_id, last_ping" }, "d2dcf69b20488d610599c309862722f805049e479035be6a416d05d73528a8e1": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Text" ] } }, "query": "INSERT INTO group_\n (workspace_id, name, summary)\n VALUES ($1, $2, $3) ON CONFLICT DO NOTHING" }, "d4eb7aea60894b65498144b9bf522beba612f36368d62fe4e94b5b9e26349d32": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [] } }, "query": "SELECT EXISTS(SELECT 1 FROM workspace WHERE id = 'demo')" }, "d5d97005eebcb2760216dbd10872acdb42868fd5f7a27f71836e7a6ff1c69856": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "DELETE FROM resource_type WHERE name = $1 AND workspace_id = $2" }, "d697b7311430e7bd5375ec5494179f4071e3bfe123d9600249cfa80c1103edd8": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Int8", "Text" ] } }, "query": "UPDATE script SET lock = $1 WHERE hash = $2 AND workspace_id = $3" }, "d768bbc46f8a9c4289b918c88ca50aa180b29bbe931d948f6e61976f71b7cdb9": { "describe": { "columns": [ { "name": "premium", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT premium FROM workspace WHERE id = $1" }, "d9c8f6ec7bd10e533876526255c15e376ccb4f898b9c0ab8840b2930bda24fdc": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "name", "ordinal": 1, "type_info": "Varchar" }, { "name": "summary", "ordinal": 2, "type_info": "Text" }, { "name": "extra_perms", "ordinal": 3, "type_info": "Jsonb" } ], "nullable": [ false, false, true, false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT * FROM group_ WHERE name = $1 AND workspace_id = $2" }, "dcf921bf9cc7dcd9122e65b2d624a9cbbecab7275ce6b5060f4c632c53b546ae": { "describe": { "columns": [ { "name": "content", "ordinal": 0, "type_info": "Text" } ], "nullable": [ false ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT content FROM script WHERE path = $1 AND (workspace_id = $2 OR workspace_id = 'starter') AND\n created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND archived = false AND (workspace_id = $2 OR workspace_id = 'starter'))" }, "dd60eb23701e97460e307b6152404e939e5bbf22d425cadd876f629134c4a683": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar" ] } }, "query": "INSERT INTO workspace_invite\n (workspace_id, email, is_admin)\n VALUES ('demo', $1, false)" }, "df8f9b2e601b0157759e9507308ea7df562a7a42516be0fcb465b8e34de0f438": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM workspace WHERE workspace.id = $1)" }, "e262f83b672a558092dc959b28a919f18e44b2a0d03b27b0ddba99896940c6d3": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS (SELECT 1 FROM flow WHERE path = $1 AND workspace_id = $2)" }, "e3eeda2e19bfbfd5aadd71c40774f7e93c8479a777fdb2828607b1db36361726": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar" ] } }, "query": "INSERT INTO usr_to_group\n VALUES ($1, 'all', $2)" }, "e5231634fbb37d45e5cf3e5dfb39cb829d224caad1c3ca1712d0fc4c495aa4fc": { "describe": { "columns": [ { "name": "hash", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ false ], "parameters": { "Left": [ "Int8", "Text" ] } }, "query": "SELECT hash FROM script WHERE parent_hashes[1] = $1 AND workspace_id = $2" }, "e587299612077e6de39b5a501aa8a736cae4a21f11853f8ae66a610b4e65f49e": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM script WHERE path = $1 AND (workspace_id = $2 OR workspace_id = 'starter') AND\n created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND (workspace_id = $2 OR workspace_id = 'starter')))" }, "e69142610bd94f6c65022cca5ccf7458b7c5bb77b3ed0278715222dd920d8644": { "describe": { "columns": [ { "name": "sum", "ordinal": 0, "type_info": "Int8" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "\n SELECT SUM(duration_ms)\n FROM completed_job\n WHERE permissioned_as = $1\n AND created_at > NOW() - INTERVAL '1200 seconds'\n AND workspace_id = $2" }, "e7051b21ffd80de0cb0644a71c89c9f63abed6b446d1e232adbb6931efad6d6d": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Uuid" } ], "nullable": [ false ], "parameters": { "Left": [ "Varchar", "Text", "Uuid", "Text" ] } }, "query": "UPDATE queue SET canceled = true, canceled_by = $1, canceled_reason = $2 WHERE id = $3 AND workspace_id = $4 RETURNING id" }, "ee99cb974fb35d2d92fa96cecb53b8ad3a729ac710f362dc55a576613b66f9be": { "describe": { "columns": [ { "name": "exists", "ordinal": 0, "type_info": "Bool" } ], "nullable": [ null ], "parameters": { "Left": [ "Text", "Text" ] } }, "query": "SELECT EXISTS(SELECT 1 FROM schedule WHERE path = $1 AND workspace_id = $2)" }, "f056b5f3e66a764748925f1bfd3180923fde8c7fdf69088d0e4a5555cc049545": { "describe": { "columns": [ { "name": "result", "ordinal": 0, "type_info": "Jsonb" } ], "nullable": [ true ], "parameters": { "Left": [ "Uuid", "Text" ] } }, "query": "SELECT result FROM completed_job WHERE id = $1 AND workspace_id = $2" }, "f325a1262084bd3468e12dc8bcc289a96536f172b679af54dd0fbc82d4d7c987": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Text", "Text", "Text" ] } }, "query": "DELETE FROM usr_to_group WHERE usr = $1 AND group_ = $2 AND workspace_id = $3" }, "f4a1bb4dfeafa3f28385c19d10730f2f49b4ebe5bba631cee46c760cee2e6949": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "path", "ordinal": 1, "type_info": "Varchar" }, { "name": "edited_by", "ordinal": 2, "type_info": "Varchar" }, { "name": "edited_at", "ordinal": 3, "type_info": "Timestamptz" }, { "name": "schedule", "ordinal": 4, "type_info": "Varchar" }, { "name": "offset_", "ordinal": 5, "type_info": "Int4" }, { "name": "enabled", "ordinal": 6, "type_info": "Bool" }, { "name": "script_path", "ordinal": 7, "type_info": "Varchar" }, { "name": "args", "ordinal": 8, "type_info": "Jsonb" }, { "name": "extra_perms", "ordinal": 9, "type_info": "Jsonb" }, { "name": "is_flow", "ordinal": 10, "type_info": "Bool" } ], "nullable": [ false, false, false, false, false, false, false, false, true, false, false ], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Int4", "Varchar", "Varchar", "Bool", "Jsonb", "Bool" ] } }, "query": "INSERT INTO schedule (workspace_id, path, schedule, offset_, edited_by, script_path, is_flow, args, enabled) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING *" }, "f7906298e4204ad55ec84021bb2461f369386493519637279f1188227230c580": { "describe": { "columns": [ { "name": "lock", "ordinal": 0, "type_info": "Text" }, { "name": "lock_error_logs", "ordinal": 1, "type_info": "Text" } ], "nullable": [ true, true ], "parameters": { "Left": [ "Int8", "Text" ] } }, "query": "SELECT lock, lock_error_logs FROM script WHERE hash = $1 AND (workspace_id = $2 OR workspace_id = 'starter')" }, "f7f2598ac824e9b5719b96b1d1873ad728f7f786c7f447df6cac3e65d5a53bf1": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Varchar" }, { "name": "name", "ordinal": 1, "type_info": "Varchar" }, { "name": "owner", "ordinal": 2, "type_info": "Varchar" }, { "name": "domain", "ordinal": 3, "type_info": "Varchar" }, { "name": "deleted", "ordinal": 4, "type_info": "Bool" }, { "name": "premium", "ordinal": 5, "type_info": "Bool" } ], "nullable": [ false, false, false, true, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT workspace.* FROM workspace, usr WHERE usr.workspace_id = workspace.id AND usr.email = $1 AND deleted = false" }, "f9136bc01bdb7d0e644efff25b7cc8035194df0452bc8b2005fe1fa44de19db4": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Uuid" ] } }, "query": "DELETE FROM resume_job WHERE job = $1" }, "f98046a2ee4ac10d9e507c033391dfb0c704dcd513d8b1e5564def4e85f9e80b": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar" ] } }, "query": "INSERT INTO worker_ping (worker_instance, worker, ip) VALUES ($1, $2, $3)" }, "fa258894bd90ea6586669e5810c5c6bcb42d5e1e68fab27fb185d06962b6454a": { "describe": { "columns": [ { "name": "workspace_id", "ordinal": 0, "type_info": "Varchar" }, { "name": "path", "ordinal": 1, "type_info": "Varchar" }, { "name": "value", "ordinal": 2, "type_info": "Jsonb" }, { "name": "description", "ordinal": 3, "type_info": "Text" }, { "name": "resource_type", "ordinal": 4, "type_info": "Varchar" }, { "name": "extra_perms", "ordinal": 5, "type_info": "Jsonb" }, { "name": "is_oauth", "ordinal": 6, "type_info": "Bool" } ], "nullable": [ false, false, true, true, false, false, false ], "parameters": { "Left": [ "Text" ] } }, "query": "SELECT * FROM resource WHERE workspace_id = $1" }, "fa567c205929f41799a64aefac97c4504c7993b22478530e9345b9bc117e92e9": { "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Int4" } ], "nullable": [ false ], "parameters": { "Left": [ "Varchar", "Varchar", "Varchar", "Text", "Varchar" ] } }, "query": "INSERT INTO account (workspace_id, client, owner, expires_at, refresh_token) VALUES ($1, $2, $3, now() + ($4 || ' seconds')::interval, $5) RETURNING id" }, "fbe14569717b4c4937b74e6dc6f6b4ea29a2b0c2b1cde48ef06d687f6f9e8f15": { "describe": { "columns": [ { "name": "client", "ordinal": 0, "type_info": "Varchar" }, { "name": "refresh_token", "ordinal": 1, "type_info": "Varchar" } ], "nullable": [ false, false ], "parameters": { "Left": [ "Text", "Int4" ] } }, "query": "SELECT client, refresh_token FROM account WHERE workspace_id = $1 AND id = $2" }, "fcb6ce4fab662602827281e3e85fffaa48542f8d590100d0e7eead2ad4ad4873": { "describe": { "columns": [], "nullable": [], "parameters": { "Left": [ "Varchar", "Text", "Text" ] } }, "query": "UPDATE variable SET value = $1 WHERE workspace_id = $2 AND path = $3" } }