Skip to content

Connection Parameters

Joey Smith edited this page Jul 19, 2025 · 3 revisions

Supported Parameters

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
    ],
];

Possible Values

  • 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

Clone this wiki locally