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

73 lines
1.8 KiB
PHP
Raw Normal View History

2011-09-16 20:01:10 -05:00
<?php
return array(
/*
|--------------------------------------------------------------------------
| Default Database Connection
|--------------------------------------------------------------------------
|
| The name of your default database connection.
|
| This connection will be the default for all database operations unless a
2011-09-17 22:18:06 -05:00
| different connection is specified when performing the operation.
2011-09-16 20:01:10 -05:00
|
*/
'default' => 'sqlite',
/*
|--------------------------------------------------------------------------
2011-09-17 22:18:06 -05:00
| Database Connections
2011-09-16 20:01:10 -05:00
|--------------------------------------------------------------------------
|
2011-09-17 22:18:06 -05:00
| All of the database connections used by your application.
2011-09-16 20:01:10 -05:00
|
2011-09-17 22:18:06 -05:00
| Supported Drivers: 'mysql', 'pgsql', 'sqlite'.
2011-09-16 20:01:10 -05:00
|
2011-09-17 22:18:06 -05:00
| Note: When using the SQLite driver, the path and "sqlite" extention will
| be added automatically. You only need to specify the database name.
2011-09-16 20:01:10 -05:00
|
2011-09-17 22:18:06 -05:00
| Using a driver that isn't supported? You can still establish a PDO
| connection. Simply specify a driver and DSN option:
|
| 'odbc' => array(
| 'driver' => 'odbc',
| 'dsn' => 'your-dsn',
| 'username' => 'username',
| 'password' => 'password',
| )
|
| Note: When using an unsupported driver, Eloquent and the fluent query
| builder may not work as expected.
2011-09-16 20:01:10 -05:00
|
*/
2011-09-17 22:18:06 -05:00
'connections' => array(
2011-09-16 20:01:10 -05:00
2011-09-17 22:18:06 -05:00
'sqlite' => array(
'driver' => 'sqlite',
'database' => 'application',
),
2011-09-16 20:01:10 -05:00
2011-09-17 22:18:06 -05:00
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
'password' => 'password',
'charset' => 'utf8',
),
2011-09-16 20:01:10 -05:00
2011-09-17 22:18:06 -05:00
'pgsql' => array(
'driver' => 'pgsql',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
'password' => 'password',
'charset' => 'utf8',
),
2011-09-16 20:01:10 -05:00
),
);