Final Class Yiisoft\Db\Sqlite\Driver
| Inheritance | Yiisoft\ |
|---|
Implements the SQLite Server driver based on the PDO (PHP Data Objects) extension.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| createConnection() | Yiisoft\ |
|
| getDriverName() | Yiisoft\ |
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();
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.