123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- return
- [
- /*
- * ---------------------------------------------------------
- * Default
- * ---------------------------------------------------------
- *
- * Default configuration to use.
- */
- 'default' => 'test',
- /*
- * ---------------------------------------------------------
- * 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' =>
- [
- 'test' =>
- [
- 'dsn' => 'mysql:dbname=hello_world;host=tfb-database;',
- 'username' => 'benchmarkdbuser',
- 'password' => 'benchmarkdbpass',
- 'persistent' => true,
- 'log_queries' => false,
- 'reconnect' => false,
- 'queries' =>
- [
- 'SET NAMES UTF8',
- ],
- ],
- 'sqlite' =>
- [
- 'dsn' => 'sqlite:' . MAKO_APPLICATION_PATH . '/storage/database/test.sqlite',
- 'log_queries' => false,
- 'reconnect' => false,
- 'queries' =>
- [
- "PRAGMA encoding = 'UTF-8'",
- ],
- ],
- ],
- ];
|