protected function createPDOMySQL($location, $database, $username, $password, $errorMode, $charset)
    {
        $dsn = 'mysql:host=' . $location . ';dbname=' . $database;
        if ($charset !== null) {
            $dsn .= ';charset=' . $charset;
        }

        $db  = new \Parable\ORM\Database\PDOMySQL($dsn, $username, $password);
        $db->setAttribute(\PDO::ATTR_ERRMODE, $errorMode);

        return $db;
    }
protected function createPDOMySQL($location, $database, $username, $password, $errorMode, $charset)
    {
        $dsn = 'mysql:host=' . $location . ';dbname=' . $database;
        if ($charset !== null) {
            $dsn .= ';charset=' . $charset;
        }

        $db  = new \Parable\ORM\Database\PDOMySQL($dsn, $username, $password);
        $db->setAttribute(\PDO::ATTR_ERRMODE, $errorMode);

        return $db;
    }
protected function createPDOMySQL ( $ location , $ database , $ username , $ password , $ errorMode , $ charset ) { $ dsn = 'mysql:host=' . $ location . ';dbname=' . $ database ; if ( $ charset !== null ) { $ dsn .= ';charset=' . $ charset ; } $ db = new \ Parable \ ORM \ Database \ PDOMySQL ( $ dsn , $ username , $ password ) ; $ db -> setAttribute ( \ PDO :: ATTR_ERRMODE , $ errorMode ) ; return $ db ; }
Create and return a MySQL PDO instance.

@param string $location
@param string $database
@param string $username
@param string $password
@param int    $errorMode
@param string $charset

@return \Parable\ORM\Database\PDOMySQL

@codeCoverageIgnore
Create and return a MySQL PDO instance .