{
  "db_name": "PostgreSQL",
  "query": "WITH entities AS (SELECT id FROM cala_transactions WHERE (COALESCE(id < $2, true)) ORDER BY id DESC LIMIT $1) 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 desc, 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": [
        "Int8",
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "be2ee189a825e4a2ce62f8cc528d8f29a27d72ec452e16e144f13c8b39828082"
}
