| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function connect(array $config) |
||
| 25 | { |
||
| 26 | $options = $this->options($config); |
||
| 27 | |||
| 28 | // SQLite provides supported for "in-memory" databases, which exist only for |
||
| 29 | // lifetime of the request. These are mainly for tests. |
||
| 30 | if ($config['database'] == ':memory:') { |
||
| 31 | return new \Pimf\Database('sqlite::memory:', null, null, $options); |
||
| 32 | } |
||
| 33 | |||
| 34 | return new \Pimf\Database('sqlite:' . $config['database'], null, null, $options); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |