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.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/PicoDb/Database.php b/vendor/PicoDb/Database.php
index 86f5fe3c..9201e9d2 100644
--- a/vendor/PicoDb/Database.php
+++ b/vendor/PicoDb/Database.php
@@ -19,7 +19,12 @@ class Database
case 'sqlite':
require_once __DIR__.'/Drivers/Sqlite.php';
- $this->pdo = new Sqlite($settings['filename']);
+ $this->pdo = new Sqlite($settings);
+ break;
+
+ case 'mysql':
+ require_once __DIR__.'/Drivers/Mysql.php';
+ $this->pdo = new Mysql($settings);
break;
default: