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