Mongo::connectUtil
Mongo::dropDB
Mongo
PHP Manual

# Mongo::__construct

(PECL mongo >=0.9.0)

Mongo::__construct — Creates a new database connection object

### Opis

Mongo::__construct ([ string `$server` = `NULL` [, boolean `$connect` = `TRUE` [, boolean `$persistent` = `FALSE` [, boolean `$paired` = `FALSE` ]]]] )

### Parametry

`server`

  The server name.

`connect`

  If the driver should connect to the database before returning.

`persistent`

  If the connection should be persistent.

`paired`

  If the connection should be paired.

### Zwracane wartości

Returns a new database connection object.

### Błędy/Wyjątki

Throws MongoConnectionException if it tries and fails to connect to the database.

Mongo::connectUtil
Mongo::dropDB
Mongo
PHP Manual