Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 1.57 KB

MongoDatabase.ru.md

File metadata and controls

84 lines (57 loc) · 1.57 KB

MongoDatabase

  • класс MongoDatabase (mongo\MongoDatabase)
  • исходники mongo/MongoDatabase.php

Описание

Class MongoDatabase


Свойства


Методы


Методы

__construct()

__construct(): void

drop()

drop(): void

Drops this database.


collection()

collection(string $name): mongo\MongoCollection

collections()

collections(): mongo\MongoIterable

Finds all the collections in this database.


createCollection()

createCollection(string $name): void

Create a new collection with the given name.


runCommand()

runCommand(array $command): array

Executes the given command in the context of the current database with a read preference of ReadPreference#primary().