Méthode |
Description |
|
__construct ( MongoDB\Driver\Manager $manager, string $databaseName, array $options = [] ) |
Constructs new Database instance. |
|
__debugInfo ( ) : array |
Return internal properties for debugging purposes. |
|
__get ( string $collectionName ) : Collection |
Select a collection within this database. |
|
__toString ( ) : string |
Return the database name. |
|
command ( array | object $command, array $options = [] ) : MongoDB\Driver\Cursor |
Execute a command on this database. |
|
createCollection ( string $collectionName, array $options = [] ) : array | object |
Create a new collection explicitly. |
|
drop ( array $options = [] ) : array | object |
Drop this database. |
|
dropCollection ( string $collectionName, array $options = [] ) : array | object |
Drop a collection within this database. |
|
getDatabaseName ( ) : string |
Returns the database name. |
|
listCollections ( array $options = [] ) : Phalcon\Db\Adapter\MongoDB\Model\CollectionInfoIterator |
Returns information for all collections in this database. |
|
selectCollection ( string $collectionName, array $options = [] ) : Collection |
Select a collection within this database. |
|
withOptions ( array $options = [] ) : Database |
Get a clone of this database with different options. |
|