src/Application.php
public function getDatabase(string $connection = 'default'): Database
    {
        if (!isset($this->database[$connection])) {
            $this->database[$connection] = new Database($this->getConnection($connection));
        }

        return $this->database[$connection];
    }
public function getDatabase(string $connection = 'default'): Database
    {
        if (!isset($this->database[$connection])) {
            $this->database[$connection] = new Database($this->getConnection($connection));
        }

        return $this->database[$connection];
    }
public function getDatabase ( string $ connection = 'default' ) : Database { if ( ! isset ( $ this -> database [ $ connection ] ) ) { $ this -> database [ $ connection ] = new Database ( $ this -> getConnection ( $ connection ) ) ; } return $ this -> database [ $ connection ] ; }
Returns a database abstraction layer

@param   string $connection (optional) Connection name

@return  Database
Returns a database abstraction layer