MongoDBClient.txt 948 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
=====================
MongoDB\\Client Class
=====================

.. default-domain:: mongodb

.. contents:: On this page
   :local:
   :backlinks: none
   :depth: 1
   :class: singlecol

Definition
----------

.. phpclass:: MongoDB\\Client

   Serves as an entry point for the |php-library|. ``MongoDB\Client``
   is the preferred class for connecting to a MongoDB server or cluster
   of servers and serves as a gateway for accessing individual
   databases and collections. ``MongoDB\Client`` is analogous to the
   driver's :php:`MongoDB\\Driver\\Manager <mongodb-driver-manager>`
   class, which it composes.

Methods
-------

.. toctree::
   :titlesonly:

   /reference/method/MongoDBClient__construct
   /reference/method/MongoDBClient__get
   /reference/method/MongoDBClient-dropDatabase
   /reference/method/MongoDBClient-listDatabases
   /reference/method/MongoDBClient-selectCollection
   /reference/method/MongoDBClient-selectDatabase