GoLang MongoCollection::__construct

request it (85)
GoLang replacement for PHP's MongoCollection::__construct [edit | history]



Do you know a GoLang replacement for PHP's MongoCollection::__construct? Write it!

PHP MongoCollection::__construct

PHP original manual for MongoCollection::__construct [ show | php.net ]

MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__constructCreates a new collection

Description

public MongoCollection::__construct ( MongoDB $db , string $name )

Parameters

MongoDB db

Parent database.

name

Name for this collection.

Return Values

Returns a new collection object.

Errors/Exceptions

Throws default exception if the collection name is invalid.