{
  "db_name": "PostgreSQL",
  "query": "WITH entities AS (SELECT id FROM cala_tx_templates WHERE (COALESCE(id > $2, true)) ORDER BY id ASC LIMIT $1) SELECT i.id AS \"entity_id: TxTemplateId\", e.sequence, e.event, e.recorded_at FROM entities i JOIN cala_tx_template_events e ON i.id = e.id ORDER BY i.id asc, i.id, e.sequence",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "entity_id: TxTemplateId",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "sequence",
        "type_info": "Int4"
      },
      {
        "ordinal": 2,
        "name": "event",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 3,
        "name": "recorded_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Int8",
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "2abf0570fe5c3c6b1e2af195230987f9b3227076c7912c07ae5302de8e8983b7"
}
