{
  "db_name": "PostgreSQL",
  "query": "WITH entities AS (SELECT id FROM cala_journals WHERE data_source_id = $1) SELECT i.id AS \"entity_id: JournalId\", e.sequence, e.event, e.recorded_at FROM entities i JOIN cala_journal_events e ON i.id = e.id ORDER BY i.id, e.sequence",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "entity_id: JournalId",
        "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"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "2b370058c0ebe9851feb5488ec404115c0184b6d5efb90e465281248a97035b7"
}
