Conditions | 4 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function __construct() |
||
17 | { |
||
18 | if (Rudra::get("DSN")->getAttribute(\PDO::ATTR_DRIVER_NAME) === "mysql") { |
||
19 | $this->driver = new MySQL($this->table); |
||
20 | } elseif (Rudra::get("DSN")->getAttribute(\PDO::ATTR_DRIVER_NAME) === "pgsql") { |
||
21 | $this->driver = new PgSQL($this->table); |
||
22 | } elseif (Rudra::get("DSN")->getAttribute(\PDO::ATTR_DRIVER_NAME) === "sqlite") { |
||
23 | $this->driver = new SQLite($this->table); |
||
24 | } |
||
65 |