Files
spa-api/application/config/database.php

108 lines
2.8 KiB
PHP
Raw Normal View History

2011-10-05 18:32:48 -05:00
<?php
return array(
2012-02-16 08:46:48 -06:00
/*
|--------------------------------------------------------------------------
| Database Query Logging
|--------------------------------------------------------------------------
|
| By default, the SQL, bindings, and execution time are logged in an array
| for you to review. They can be retrieved via the DB::profile() method.
| However, in some situations, you may want to disable logging for
| ultra high-volume database work. You can do so here.
|
*/
'profile' => true,
2011-10-05 18:32:48 -05:00
/*
|--------------------------------------------------------------------------
| Default Database Connection
|--------------------------------------------------------------------------
|
2012-01-16 13:59:24 -06:00
| The name of your default database connection. This connection will used
| as the default for all database operations unless a different name is
| given when performing said operation. This connection name should be
| listed in the array of connections below.
2011-10-05 18:32:48 -05:00
|
*/
2012-01-16 13:59:24 -06:00
'default' => 'mysql',
2011-10-05 18:32:48 -05:00
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
2012-01-16 13:59:24 -06:00
| All of the database connections used by your application. Many of your
| applications will no doubt only use one connection; however, you have
| the freedom to specify as many connections as you can handle.
2011-10-05 18:32:48 -05:00
|
2012-01-16 13:59:24 -06:00
| All database work in Laravel is done through the PHP's PDO facilities,
| so make sure you have the PDO drivers for your particlar database of
| choice installed on your machine.
2011-10-05 18:32:48 -05:00
|
2012-01-16 13:59:24 -06:00
| Drivers: 'mysql', 'pgsql', 'sqlsrv', 'sqlite'.
2011-10-05 18:32:48 -05:00
|
*/
'connections' => array(
'sqlite' => array(
'driver' => 'sqlite',
'database' => 'application',
'prefix' => '',
2011-10-05 18:32:48 -05:00
),
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
2012-01-27 10:43:45 -06:00
'password' => '',
2011-10-05 18:32:48 -05:00
'charset' => 'utf8',
'prefix' => '',
2011-10-05 18:32:48 -05:00
),
'pgsql' => array(
'driver' => 'pgsql',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
2012-01-27 10:43:45 -06:00
'password' => '',
2011-10-05 18:32:48 -05:00
'charset' => 'utf8',
'prefix' => '',
2011-10-05 18:32:48 -05:00
),
2012-01-16 13:59:24 -06:00
'sqlsrv' => array(
'driver' => 'sqlsrv',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
2012-01-27 10:43:45 -06:00
'password' => '',
'prefix' => '',
2012-01-16 13:59:24 -06:00
),
2011-10-05 18:32:48 -05:00
),
2011-10-26 21:21:31 -05:00
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store. However, it
| provides a richer set of commands than a typical key-value store such as
2012-01-16 13:59:24 -06:00
| APC or memcached. All the cool kids are using it.
2011-10-26 21:21:31 -05:00
|
2012-01-16 13:59:24 -06:00
| To get the scoop on Redis, check out: http://redis.io
2011-10-26 21:21:31 -05:00
|
*/
'redis' => array(
'default' => array('host' => '127.0.0.1', 'port' => 6379),
),
);