summaryrefslogtreecommitdiff
path: root/vendor/PicoDb/Database.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/PicoDb/Database.php')
-rw-r--r--vendor/PicoDb/Database.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/PicoDb/Database.php b/vendor/PicoDb/Database.php
index 9201e9d2..4d7b7031 100644
--- a/vendor/PicoDb/Database.php
+++ b/vendor/PicoDb/Database.php
@@ -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.');
}