- класс
MongoDatabase
(mongo\MongoDatabase
) - исходники
mongo/MongoDatabase.php
Описание
Class MongoDatabase
->
name
:string
->
__construct()
->
drop()
- Drops this database.->
collection()
->
collections()
- Finds all the collections in this database.->
createCollection()
- Create a new collection with the given name.->
runCommand()
- Executes the given command in the context of the current database with a read preference of ReadPreference#primary().
__construct(): void
drop(): void
Drops this database.
collection(string $name): mongo\MongoCollection
collections(): mongo\MongoIterable
Finds all the collections in this database.
createCollection(string $name): void
Create a new collection with the given name.
runCommand(array $command): array
Executes the given command in the context of the current database with a read preference of ReadPreference#primary().