{
  "db_name": "PostgreSQL",
  "query": "\n            UPDATE workspace_settings\n            SET git_sync = jsonb_set(\n                git_sync,\n                '{repositories}',\n                (SELECT jsonb_agg(\n                    CASE WHEN elem->>'git_repo_resource_path' = $2\n                          AND jsonb_typeof(elem->'auto_pull') = 'object'\n                        THEN jsonb_set(elem, '{auto_pull}',\n                             ((elem->'auto_pull') - 'webhook_id' - 'webhook_secret' - 'webhook_error') || $3)\n                        ELSE elem END)\n                 FROM jsonb_array_elements(git_sync->'repositories') AS elem)\n            )\n            WHERE workspace_id = $1\n              AND jsonb_typeof(git_sync->'repositories') = 'array'\n            ",
  "describe": {
    "columns": [],
    "parameters": {
      "Left": [
        "Text",
        "Text",
        "Jsonb"
      ]
    },
    "nullable": []
  },
  "hash": "3b7498768197d7e002c3965ad16e6b88daa38ba272d22f846bd4267a134c404c"
}
