0 follower

Final Class Yiisoft\Db\Sqlite\Driver

InheritanceYiisoft\Db\Sqlite\Driver » Yiisoft\Db\Driver\Pdo\AbstractPdoDriver

Implements the SQLite Server driver based on the PDO (PHP Data Objects) extension.

Method Details

Hide inherited methods

createConnection() public method

public PDO createConnection ( )

                public function createConnection(): PDO
{
    $this->attributes += [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION];
    if (PHP_VERSION_ID >= 80100) {
        $this->attributes += [PDO::ATTR_STRINGIFY_FETCHES => true];
    }
    return parent::createConnection();
}

            
getDriverName() public method

public string getDriverName ( )

                public function getDriverName(): string
{
    return 'sqlite';
}