original_string: public function listDatabases(array $options = [])
      {
          $operation = new ListDatabases($options);
          $server = $this->manager->selectServer(new ReadPreference(ReadPreference::RP_PRIMARY));
  
          return $operation->execute($server);
      }
code: public function listDatabases(array $options = [])
      {
          $operation = new ListDatabases($options);
          $server = $this->manager->selectServer(new ReadPreference(ReadPreference::RP_PRIMARY));
  
          return $operation->execute($server);
      }
code_tokens: public function listDatabases ( array $ options = [ ] ) { $ operation = new ListDatabases ( $ options ) ; $ server = $ this -> manager -> selectServer ( new ReadPreference ( ReadPreference :: RP_PRIMARY ) ) ; return $ operation -> execute ( $ server ) ; }
docstring: List databases.
  
  @see ListDatabases::__construct() for supported options
  @return DatabaseInfoIterator
  @throws UnexpectedValueException if the command response was malformed
  @throws InvalidArgumentException for parameter/option parsing errors
  @throws DriverRuntimeException for other driver errors (e.g. connection errors)
docstring_tokens: List databases .