{
  "db_name": "PostgreSQL",
  "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                   , raw_code\n                   , raw_lock\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                   , email\n                   , visible_to_owner\n                   , mem_peak\n                   , tag\n                   , priority\n                )\n            VALUES ($1, $2, $3, $4, $5, COALESCE($6, now()), (EXTRACT('epoch' FROM (now())) - EXTRACT('epoch' FROM (COALESCE($6, now()))))*1000, $7, $8, $9,$10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29)\n         ON CONFLICT (id) DO UPDATE SET success = $7, result = $11 RETURNING duration_ms",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "duration_ms",
        "type_info": "Int8"
      }
    ],
    "parameters": {
      "Left": [
        "Varchar",
        "Uuid",
        "Uuid",
        "Varchar",
        "Timestamptz",
        "Timestamptz",
        "Bool",
        "Int8",
        "Varchar",
        "Jsonb",
        "Jsonb",
        "Text",
        "Text",
        "Bool",
        "Varchar",
        "Text",
        {
          "Custom": {
            "name": "job_kind",
            "kind": {
              "Enum": [
                "script",
                "preview",
                "flow",
                "dependencies",
                "flowpreview",
                "script_hub",
                "identity",
                "flowdependencies",
                "http",
                "graphql",
                "postgresql",
                "noop",
                "appdependencies",
                "deploymentcallback",
                "singlescriptflow"
              ]
            }
          }
        },
        "Varchar",
        "Varchar",
        "Jsonb",
        "Jsonb",
        "Bool",
        "Bool",
        {
          "Custom": {
            "name": "script_lang",
            "kind": {
              "Enum": [
                "python3",
                "deno",
                "go",
                "bash",
                "postgresql",
                "nativets",
                "bun",
                "mysql",
                "bigquery",
                "snowflake",
                "graphql",
                "powershell",
                "mssql",
                "php"
              ]
            }
          }
        },
        "Varchar",
        "Bool",
        "Int4",
        "Varchar",
        "Int2"
      ]
    },
    "nullable": [
      false
    ]
  },
  "hash": "d5a8614286c170e0d175903cd1b53ff66b37ed8110a0b67aedb9f25e6a7383e1"
}
