Add Postgresql support

This commit is contained in:
Frédéric Guillot
2014-07-05 16:32:24 -03:00
parent 23341b2326
commit 035294798d
12 changed files with 364 additions and 23 deletions

View File

@@ -27,6 +27,11 @@ class Database
$this->pdo = new Mysql($settings);
break;
case 'postgres':
require_once __DIR__.'/Drivers/Postgres.php';
$this->pdo = new Postgres($settings);
break;
default:
throw new \LogicException('This database driver is not supported.');
}