1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- return
- [
- /**
- * ---------------------------------------------------------
- * Default
- * ---------------------------------------------------------
- *
- * Default configuration to use.
- */
- 'default' => 'sqlite',
- /**
- * ---------------------------------------------------------
- * Configurations
- * ---------------------------------------------------------
- *
- * You can define as many database configurations as you want.
- *
- * dsn : PDO data source name
- * username : (optional) Username of the database server
- * password : (optional) Password of the database server
- * persistent : (optional) Set to true to make the connection persistent
- * log_queries: (optional) Enable query logging?
- * reconnect : (optional) Should the connection automatically be reestablished?
- * options : (optional) An array of PDO options
- * queries : (optional) Queries that will be executed right after a connection has been made
- */
- 'configurations' =>
- [
- 'sqlite' =>
- [
- 'dsn' => 'sqlite:' . MAKO_APPLICATION_PATH . '/storage/database/test.sqlite',
- 'log_queries' => false,
- 'reconnect' => false,
- 'queries' =>
- [
- "PRAGMA encoding = 'UTF-8'",
- ],
- ],
- ],
- ];
|