mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-25 16:13:24 +08:00
Support for custom drivers
This commit is contained in:
@ -0,0 +1,183 @@
|
||||
{
|
||||
"baseInfo": {
|
||||
"items": [
|
||||
{
|
||||
"defaultValue": "@localhost",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "名称",
|
||||
"labelNameEN": "Name",
|
||||
"name": "alias",
|
||||
"required": true,
|
||||
"width": 100,
|
||||
},
|
||||
{
|
||||
"defaultValue": "localhost",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "主机",
|
||||
"labelNameEN": "Host",
|
||||
"name": "host",
|
||||
"required": true,
|
||||
"width": 70,
|
||||
},
|
||||
{
|
||||
"defaultValue": "3306",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "端口",
|
||||
"labelNameEN": "Port",
|
||||
"name": "port",
|
||||
"labelTextAlign": "right",
|
||||
"required": true,
|
||||
"width": 30,
|
||||
},
|
||||
{
|
||||
"defaultValue": AuthenticationType.USERANDPASSWORD,
|
||||
"inputType": InputType.SELECT,
|
||||
"labelNameCN": "身份验证",
|
||||
"labelNameEN": "Authentication",
|
||||
"name": "authentication",
|
||||
"required": true,
|
||||
"selects": [
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"defaultValue": "root",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "用户名",
|
||||
"labelNameEN": "User",
|
||||
"name": "user",
|
||||
"required": true,
|
||||
"width": 100,
|
||||
},
|
||||
{
|
||||
"defaultValue": ",
|
||||
"inputType": InputType.PASSWORD,
|
||||
"labelNameCN": "密码",
|
||||
"labelNameEN": "Password",
|
||||
"name": "password",
|
||||
"required": true,
|
||||
"width": 100,
|
||||
},
|
||||
],
|
||||
"label": "User&Password",
|
||||
"value": AuthenticationType.USERANDPASSWORD,
|
||||
},
|
||||
{
|
||||
"label": "NONE",
|
||||
"value": "NONE,
|
||||
},
|
||||
],
|
||||
"width": 50
|
||||
},
|
||||
{
|
||||
"defaultValue": "",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "数据库",
|
||||
"labelNameEN": "Database",
|
||||
"name": "database",
|
||||
"required": false,
|
||||
"width": 100
|
||||
},
|
||||
{
|
||||
"defaultValue": "jdbc:mysql://localhost:3306",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "URL",
|
||||
"labelNameEN": "URL",
|
||||
"name": "url",
|
||||
"required": true,
|
||||
"width": 100
|
||||
},
|
||||
{
|
||||
"defaultValue": "8.0",
|
||||
"inputType": "SELECT",
|
||||
"labelNameCN": "JDBC驱动",
|
||||
"labelNameEN": "JDBC Driver",
|
||||
"name": "jdbc",
|
||||
"required": true,
|
||||
"selects": [
|
||||
{
|
||||
"value": "8.0"
|
||||
},
|
||||
{
|
||||
"value": "5.0"
|
||||
}
|
||||
],
|
||||
"width": 100
|
||||
}
|
||||
],
|
||||
"pattern": "/jdbc:mysql:\/\/(.*):(\\d+)(\/(\\w+))?/",
|
||||
"template": "jdbc:mysql://{host}:{port}/{database}"
|
||||
},
|
||||
"ssh": {
|
||||
"items": [
|
||||
{
|
||||
"defaultValue": "false",
|
||||
"inputType": "SELECT",
|
||||
"labelNameCN": "使用SSH",
|
||||
"labelNameEN": "USE SSH",
|
||||
"name": "use",
|
||||
"required": false,
|
||||
"selects": [
|
||||
{
|
||||
"value": "false"
|
||||
},
|
||||
{
|
||||
"value": "true"
|
||||
}
|
||||
],
|
||||
"width": 100
|
||||
},
|
||||
{
|
||||
"defaultValue": "",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "SSH 主机",
|
||||
"labelNameEN": "SSH Hostname",
|
||||
"name": "hostName",
|
||||
"required": false,
|
||||
"width": 70
|
||||
},
|
||||
{
|
||||
"defaultValue": "22",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "SSH 端口",
|
||||
"labelNameEN": "Port",
|
||||
"name": "port",
|
||||
"required": false,
|
||||
"width": 28
|
||||
},
|
||||
{
|
||||
"defaultValue": "root",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "用户名",
|
||||
"labelNameEN": "SSH UserName",
|
||||
"name": "userName",
|
||||
"required": false,
|
||||
"width": 70
|
||||
},
|
||||
{
|
||||
"defaultValue": "3306",
|
||||
"inputType": "INPUT",
|
||||
"labelNameCN": "本地端口",
|
||||
"labelNameEN": "LocalPort",
|
||||
"name": "localPort",
|
||||
"required": false,
|
||||
"width": 28
|
||||
},
|
||||
{
|
||||
"defaultValue": "",
|
||||
"inputType": "PASSWORD",
|
||||
"labelNameCN": "密码",
|
||||
"labelNameEN": "Password",
|
||||
"name": "password",
|
||||
"required": true,
|
||||
"width": 100
|
||||
}
|
||||
]
|
||||
},
|
||||
"extendInfo": [
|
||||
{
|
||||
"key":"zeroDateTimeBehavior",
|
||||
"value":"convertToNull"
|
||||
}
|
||||
],
|
||||
"type":"MYSQL"
|
||||
}
|
Reference in New Issue
Block a user