PHP » GoLang |
login |
register |
about
|
GoLang MongoClient::close
request it (407)
GoLang replacement for PHP's MongoClient::close
[edit | history]
MongoClient::close(PECL mongo >=1.3.0) MongoClient::close — Closes this connection
Description
public bool MongoClient::close
([ boolean|string
$connection
] )The MongoClient::close() method forcefully closes a connection to the database, even if persistent connections are being used. You should never have to do this under normal circumstances.
Parameters
Return ValuesReturns if the connection was successfully closed. ExamplesExample #1 MongoClient::close() example This example demonstrates how to selectively close all connections for secondaries only.
<?php The above example will output: Closing 'whisky:13001;X;4948': ok Changelog
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|