forked from php-db/phpdb-adapter-sqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
Connection Parameters
Joey Smith edited this page Jul 19, 2025
·
3 revisions
return [
'db' => [
'driver' => 'sqlite',
'connection' => [
'dsn' => 'C:/path/to/your_database.db,
'charset' => 'utf8',
'driver_options' => [],
],
'options' => [ // new config value,
'buffer_results' => false, // buffer_results, gets passed to Statement, default is false
],
'profiler' => Profiler::class|true, // new config value
],
];- dsn (required)
- string 'sqlite:C:/path/to/your_database.db'
- string 'C:/path/to/your_database.db'
- driver (required)
- string 'sqlite'
- string classname Pdo\Pdo::class
- charset (optional)
- string 'utf-8' or any valid sqlite charset
- options (optional)
- array of valid PDO\Sqlite driver options