1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00

* added configuration aliases (user -> username, pass -> password)

* dibi::$defaultDriver
This commit is contained in:
David Grudl
2007-10-26 17:44:24 +00:00
parent 879bbeba1f
commit 39c62c1cd5
11 changed files with 79 additions and 73 deletions

View File

@@ -33,12 +33,8 @@ class DibiSqliteDriver extends DibiDriver
*/
public function __construct($config)
{
if (empty($config['database'])) {
throw new DibiException("Database must be specified");
}
self::prepare($config, 'database', 'file');
if (!isset($config['mode'])) $config['mode'] = 0666;
parent::__construct($config);
}