public function getDsn() {
        if ($dsn = $this->getConfig('dsn')) {
            return $dsn;
        }

        $dsn = $this->getDriver() . ':';

        if ($path = $this->getConfig('path')) {
            $dsn .= $path;

        } else if ($this->getConfig('memory')) {
            $dsn .= ':memory:';
        }

        return $dsn;
    }
public function getDsn() {
        if ($dsn = $this->getConfig('dsn')) {
            return $dsn;
        }

        $dsn = $this->getDriver() . ':';

        if ($path = $this->getConfig('path')) {
            $dsn .= $path;

        } else if ($this->getConfig('memory')) {
            $dsn .= ':memory:';
        }

        return $dsn;
    }
{@inheritdoc}