Final Class Yiisoft\Db\Sqlite\Driver
| Inheritance | Yiisoft\Db\Sqlite\Driver » Yiisoft\Db\Driver\Pdo\AbstractPdoDriver |
|---|
Implements the SQLite Server driver based on the PDO (PHP Data Objects) extension.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| createConnection() | Yiisoft\Db\Sqlite\Driver | |
| getDriverName() | Yiisoft\Db\Sqlite\Driver |
Method Details
| 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();
}
Signup or Login in order to comment.