{
  "db_name": "PostgreSQL",
  "query": "WITH entities AS (\n                            SELECT created_at, id\n                            FROM cala_entries\n                            JOIN cala_balance_history ON cala_entries.id = cala_balance_history.latest_entry_id\n                            WHERE cala_balance_history.account_id = $4\n                              AND (COALESCE((created_at, id) > ($3, $2), $2 IS NULL))\n                            ORDER BY created_at ASC, id ASC\n                            LIMIT $1) SELECT i.id AS \"entity_id: EntryId\", e.sequence, e.event, e.recorded_at FROM entities i JOIN cala_entry_events e ON i.id = e.id ORDER BY i.created_at asc, i.id asc, i.id, e.sequence",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "entity_id: EntryId",
        "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",
        "Timestamptz",
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "d7fc0e2d283bb6bb620f0fa91f9436cbe7bed2356c30413a792e8d0054a781a9"
}
