{
  "db_name": "PostgreSQL",
  "query": "SELECT name, (EXISTS (SELECT 1 FROM (SELECT key, value FROM jsonb_each_text(extra_perms) WHERE key = ANY($1)) t  WHERE value::boolean IS true)) as write, $1 && owners::text[] as owner  FROM folder\n        WHERE extra_perms ?| $1  AND workspace_id = $2",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 1,
        "name": "write",
        "type_info": "Bool"
      },
      {
        "ordinal": 2,
        "name": "owner",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "TextArray",
        "Text"
      ]
    },
    "nullable": [
      false,
      null,
      null
    ]
  },
  "hash": "d243064655e45a3898e39ed151416e4e63ec19292cedddfb408d026cf5218f09"
}
