src/WorkerF/DB/Drivers/Sqlite.php
protected function _connect()
    {
        extract($this->_config, EXTR_SKIP);

        if ($dbname == ':memory:') {
            $dsn = 'sqlite::memory:';
        } else {
            $path = realpath($dbname);

            if ($path === FALSE) {
                throw new \InvalidArgumentException("Database $dbname does not exist.");
            }
            $dsn = 'sqlite:'.$path;
        }

        $options = isset($options) ? $options + $this->_options : $this->_options;

        try {

            $this->_pdo = new PDO($dsn, '', '', $options);

        } catch (PDOException $e) {
            throw $e;
        }
    }
protected function _connect()
    {
        extract($this->_config, EXTR_SKIP);

        if ($dbname == ':memory:') {
            $dsn = 'sqlite::memory:';
        } else {
            $path = realpath($dbname);

            if ($path === FALSE) {
                throw new \InvalidArgumentException("Database $dbname does not exist.");
            }
            $dsn = 'sqlite:'.$path;
        }

        $options = isset($options) ? $options + $this->_options : $this->_options;

        try {

            $this->_pdo = new PDO($dsn, '', '', $options);

        } catch (PDOException $e) {
            throw $e;
        }
    }
create a PDO instance

@return  void
@throws  \PDOException
@throws  \InvalidArgumentException