{
  "db_name": "PostgreSQL",
  "query": "WITH entities AS (SELECT created_at, id FROM cala_velocity_limits WHERE (COALESCE((created_at, id) > ($3, $2), $2 IS NULL)) ORDER BY created_at ASC, id ASC LIMIT $1) SELECT i.id AS \"entity_id: VelocityLimitId\", e.sequence, e.event, e.recorded_at FROM entities i JOIN cala_velocity_limit_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: VelocityLimitId",
        "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"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "3a7822d9b1c355b11ee0dffd58fef197b999461df83ad615b5a9720a552a01d4"
}
