{
  "db_name": "PostgreSQL",
  "query": "SELECT app.id, app.path, app.summary, app.versions, app.policy,\n        app.extra_perms, app_version.value, \n        app_version.created_at, app_version.created_by,\n        app.draft_only, draft.value as \"draft?\"\n        from app\n        INNER JOIN app_version ON\n        app_version.id = app.versions[array_upper(app.versions, 1)]\n        LEFT JOIN draft ON \n        app.path = draft.path AND app.workspace_id = draft.workspace_id AND draft.typ = 'app' \n        WHERE app.path = $1 AND app.workspace_id = $2",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Int8"
      },
      {
        "ordinal": 1,
        "name": "path",
        "type_info": "Varchar"
      },
      {
        "ordinal": 2,
        "name": "summary",
        "type_info": "Varchar"
      },
      {
        "ordinal": 3,
        "name": "versions",
        "type_info": "Int8Array"
      },
      {
        "ordinal": 4,
        "name": "policy",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 5,
        "name": "extra_perms",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 6,
        "name": "value",
        "type_info": "Json"
      },
      {
        "ordinal": 7,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 8,
        "name": "created_by",
        "type_info": "Varchar"
      },
      {
        "ordinal": 9,
        "name": "draft_only",
        "type_info": "Bool"
      },
      {
        "ordinal": 10,
        "name": "draft?",
        "type_info": "Json"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      false,
      true,
      false
    ]
  },
  "hash": "f07e4fb9d3b346c6c0a93133d428691a2e17a0c7eef5c593732ad7297d366ad4"
}
