Documentation

ListDatabases
in package
implements Executable

Operation for the ListDatabases command.

Tags
see
Client::listDatabases()
see
http://docs.mongodb.org/manual/reference/command/ListDatabases/

Interfaces, Classes, Traits and Enums

Executable

Table of Contents

$listDatabases  : ListDatabases
__construct()  : mixed
Constructs a listDatabases command.
execute()  : DatabaseInfoIterator
Execute the operation.

Properties

Methods

__construct()

Constructs a listDatabases command.

public __construct([array<string|int, mixed> $options = [] ]) : mixed

Supported options:

  • authorizedDatabases (boolean): Determines which databases are returned based on the user privileges.

    For servers < 4.0.5, this option is ignored.

  • filter (document): Query by which to filter databases.

  • maxTimeMS (integer): The maximum amount of time to allow the query to run.

  • session (MongoDB\Driver\Session): Client session.

Parameters
$options : array<string|int, mixed> = []

Command options

Tags
throws
InvalidArgumentException

for parameter/option parsing errors

Return values
mixed

Search results