GoLang MongoDB::resetError

request it (193)
GoLang replacement for PHP's MongoDB::resetError [edit | history]

Do you know a GoLang replacement for PHP's MongoDB::resetError? Write it!

PHP MongoDB::resetError

PHP original manual for MongoDB::resetError [ show | php.net ]


(PECL mongo >=0.9.5)

MongoDB::resetErrorClears any flagged errors on the database


public array MongoDB::resetError ( void )

This method is not used in normal operations. It resets the database error tracker (which can be incremented with MongoDB::forceError(), also not normally used).

It is equivalent to running:


public function resetError() {
$this->command(array('reseterror' => 1));



This function has no parameters.

Return Values

Returns the database response.


Version Description
1.2.11 Emits E_DEPRECATED when used.