diff options
| author | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-03-30 19:53:59 -0400 |
|---|---|---|
| committer | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-03-30 19:53:59 -0400 |
| commit | d9dfd9d6199b15eba9510ef460e18c9245d9ab12 (patch) | |
| tree | 6704134700cbc80c39b289620917d4bec011998e /vendor/PicoDb/Database.php | |
| parent | 34711f584651205cb6738b49df285d93a35393b5 (diff) | |
Add Mysql/MariaDB support
Diffstat (limited to 'vendor/PicoDb/Database.php')
| -rw-r--r-- | vendor/PicoDb/Database.php | 7 |
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: |
