| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class MySQLConnector extends Connector |
||
| 10 | { |
||
| 11 | protected static $type = 'mysql'; |
||
| 12 | |||
| 13 | protected $defaultConfig = [ |
||
| 14 | 'database-prefix' => '', |
||
| 15 | 'database-name' => 'nebula', |
||
| 16 | 'database-user' => 'root', |
||
| 17 | 'database-password' => '', |
||
| 18 | 'server-host' => '127.0.0.1', |
||
| 19 | 'server-port' => 3306, |
||
| 20 | 'database-charset' => 'utf8mb4', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * 获取PDO链接描述 |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getDsn():string |
||
| 37 |