1
0
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:
David Grudl
2007-05-11 22:25:32 +00:00
parent d03f60c43c
commit f766827219
19 changed files with 123 additions and 230 deletions

View File

@@ -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',