fixed database bugs.
This commit is contained in:
@@ -43,16 +43,17 @@ return array(
|
||||
'sqlite' => function($config)
|
||||
{
|
||||
return new PDO('sqlite:'.DATABASE_PATH.'application.sqlite', null, null, $config['options']);
|
||||
}
|
||||
},
|
||||
|
||||
'mysql' => function($config)
|
||||
{
|
||||
return new PDO('mysql:host=localhost;dbname=database', 'username', 'password', $config['options']);
|
||||
}
|
||||
},
|
||||
|
||||
'pgsql' => array(
|
||||
'pgsql' => function($config)
|
||||
{
|
||||
return new PDO('pgsql:host=localhost;dbname=database', 'username', 'password', $config['options']);
|
||||
),
|
||||
},
|
||||
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user