Method | Description | |
---|---|---|
__construct ( string $uri = 'mongodb://localhost:27017', array $uriOptions = [], array $driverOptions = [] ) | Constructs a new Client instance. | |
__debugInfo ( ) : array | Return internal properties for debugging purposes. | |
__get ( string $databaseName ) : |
Select a database. | |
__toString ( ) : string | Return the connection string (i.e. URI). | |
dropDatabase ( string $databaseName, array $options = [] ) : array | object | Drop a database. | |
listDatabases ( array $options = [] ) : Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoIterator | List databases. | |
selectCollection ( string $databaseName, string $collectionName, array $options = [] ) : |
Select a collection. | |
selectDatabase ( string $databaseName, array $options = [] ) : |
Select a database. |
public __debugInfo ( ) : array | ||
return | array |
public __toString ( ) : string | ||
return | string |
public listDatabases ( array $options = [] ) : Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoIterator | ||
$options | array | |
return | Phalcon\Db\Adapter\MongoDB\Model\DatabaseInfoIterator |
public selectDatabase ( string $databaseName, array $options = [] ) : |
||
$databaseName | string | Name of the database to select |
$options | array | Database constructor options |
return |