MongoLite\Client::selectDB PHP Method

selectDB() public method

Select database
public selectDB ( string $name ) : object
$name string
return object
    public function selectDB($name)
    {
        if (!isset($this->databases[$name])) {
            $this->databases[$name] = new Database($this->path . '/' . $name . '.sqlite', $this->options);
        }
        return $this->databases[$name];
    }