LMongo\DatabaseManager::reconnect PHP Method

reconnect() public method

Reconnect to the given database.
public reconnect ( string $name = null ) : Connection
$name string
return Connection
    public function reconnect($name = null)
    {
        unset($this->connections[$name]);
        return $this->connection($name);
    }