listDatabases = new ListDatabasesCommand(['nameOnly' => true] + $options); } /** * Execute the operation. * * @see Executable::execute() * @param Server $server * @return Iterator * @throws UnexpectedValueException if the command response was malformed * @throws DriverRuntimeException for other driver errors (e.g. connection errors) */ public function execute(Server $server) : Iterator { $result = $this->listDatabases->execute($server); return new ArrayIterator(array_column($result, 'name')); } }