{
  "db_name": "PostgreSQL",
  "query": "WITH entities AS (SELECT tx_template_id, id FROM cala_transactions WHERE ((tx_template_id = $1) AND (COALESCE(id > $3, true))) ORDER BY id ASC LIMIT $2) SELECT i.id AS \"entity_id: TransactionId\", e.sequence, e.event, e.recorded_at FROM entities i JOIN cala_transaction_events e ON i.id = e.id ORDER BY i.id asc, i.id, e.sequence",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "entity_id: TransactionId",
        "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": [
        "Uuid",
        "Int8",
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "e29215c0e5e0469f8df89df188748c17fc4a18be27f7d4a64cf6512956090c68"
}
