PHP » GoLang |
login |
register |
about
|
GoLang MongoDB::__construct
request it (348)
GoLang replacement for PHP's MongoDB::__construct
[edit | history]
MongoDB::__construct(PECL mongo >=0.9.0) MongoDB::__construct — Creates a new database DescriptionThis method is not meant to be called directly. The preferred way to create an instance of MongoDB is through MongoClient::__get() or MongoClient::selectDB(). If you're ignoring the previous paragraph and want to call it directly you can do so:
<?php But don't. Isn't this much nicer:
<?php Return ValuesReturns the database. Errors/ExceptionsThrows default exception if the database name is invalid. |
more
Recently updated
more
Most requested
more
Last requests
|