| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Sqlite extends SQL |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @link https://secure.php.net/manual/en/ref.pdo-mysql.connection.php |
||
| 9 | * |
||
| 10 | * The PDO_SQLITE Data Source Name (DSN) is composed of the following elements: |
||
| 11 | */ |
||
| 12 | const AVAILABLE_ELEMENTS = [ |
||
| 13 | 'path', |
||
| 14 | ]; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Generate DSN by parameters in config |
||
| 18 | * |
||
| 19 | * @param array $config |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function genDsn($config): string |
||
| 35 |