code: async def get_all(
          self,
          direction: msg.StreamDirection = msg.StreamDirection.Forward,
          from_position: Optional[Union[msg.Position, msg._PositionSentinel]] = None,
          max_count: int = 100,
          resolve_links: bool = True,
          require_master: bool = False,
          correlation_id: uuid.UUID = None,
      ):
          
          correlation_id = correlation_id
          cmd = convo.ReadAllEvents(
              msg.Position.for_direction(direction, from_position),
              max_count,
              resolve_links,
              require_master,
              direction=direction,
              credentials=self.credential,
          )
          result = await self.dispatcher.start_conversation(cmd)
  
          return await result
docs: Read a range of events from the whole database.
  
          Args:
              direction (optional): Controls whether to read events forward or backward.
                defaults to Forward.
              from_position (optional): The position to read from.
                defaults to the beginning of the stream when direction is forward
                and the end of the stream if direction is backward.
              max_count (optional): The maximum number of events to return.
              resolve_links (optional): True if eventstore should
                  automatically resolve Link Events, otherwise False.
              required_master (optional): True if this command must be
                  sent direct to the master node, otherwise False.
              correlation_id (optional): A unique identifer for this command.
  
          Examples:
  
              Read 5 events
  
              >>> async for event in conn.get_all(max_count=5):
              >>>     print(event)
  
  
              Read 10 most recent events in reverse order
  
              >>> async for event in conn.get_all(
                          max_count=10,
                          direction=StreamDirection.Backward
                      ):
              >>>     print(event)