PHP » GoLang |
login |
register |
about
|
GoLang MongoClient::__get
request it (333)
GoLang replacement for PHP's MongoClient::__get
[edit | history]
MongoClient::__get(PECL mongo >=1.3.0) MongoClient::__get — Gets a database This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this method in the new extension, but there is an alternative in the PHP library: DescriptionThis is the cleanest way of getting a database. If the database name has any special characters, MongoClient::selectDB() will need to be used; however, this should be sufficient for most cases.
<?php Parameters
Return ValuesReturns a new db object. Errors/ExceptionsThrows a generic exception if the database name is invalid. |
more
Recently updated
more
Most requested
more
Last requests
|