{
  "db_name": "PostgreSQL",
  "query": "WITH entities AS (SELECT code, id FROM cala_accounts WHERE (COALESCE((code, id) > ($3, $2), $2 IS NULL)) ORDER BY code ASC, id ASC LIMIT $1) SELECT i.id AS \"entity_id: AccountId\", e.sequence, e.event, e.recorded_at FROM entities i JOIN cala_account_events e ON i.id = e.id ORDER BY i.code asc, i.id asc, i.id, e.sequence",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "entity_id: AccountId",
        "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",
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "29225b902a8924d5b14baa0329d94c70e8d83b2c286505f993c6d050992a963a"
}
