mirror of
https://github.com/dg/dibi.git
synced 2025-08-29 16:59:49 +02:00
bugfix, enhanced error reporting, better examples
This commit is contained in:
@@ -5,6 +5,12 @@ require_once '../dibi/dibi.php';
|
||||
|
||||
try {
|
||||
|
||||
// connects to SQlite
|
||||
dibi::connect(array(
|
||||
'driver' => 'sqlite',
|
||||
'database' => 'sample.sdb',
|
||||
));
|
||||
|
||||
// connects to MySQL using DSN
|
||||
dibi::connect('driver=mysql&host=localhost&username=root&password=xxx&database=test&charset=utf8');
|
||||
|
||||
@@ -29,13 +35,6 @@ try {
|
||||
));
|
||||
|
||||
|
||||
// connects to SQlite
|
||||
dibi::connect(array(
|
||||
'driver' => 'sqlite',
|
||||
'database' => 'mydb.sdb',
|
||||
));
|
||||
|
||||
|
||||
// connects to PostgreSql
|
||||
dibi::connect(array(
|
||||
'driver' => 'postgre',
|
||||
|
Reference in New Issue
Block a user