2021-09-15 02:50:55 +00:00
|
|
|
{
|
2022-01-27 05:25:16 +00:00
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json",
|
2021-09-15 02:50:55 +00:00
|
|
|
"title": "Mysql datasource",
|
|
|
|
|
"description": "A schema defining mysql datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "database",
|
2021-09-22 05:13:12 +00:00
|
|
|
"source": {
|
|
|
|
|
"name": "MySQL",
|
|
|
|
|
"kind": "mysql",
|
|
|
|
|
"exposedVariables": {
|
2022-02-08 03:14:38 +00:00
|
|
|
"isLoading": false,
|
2021-09-22 05:13:12 +00:00
|
|
|
"data": {},
|
|
|
|
|
"rawData": {}
|
|
|
|
|
},
|
|
|
|
|
"options": {
|
2023-08-02 10:19:31 +00:00
|
|
|
"connection_type": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
"host": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"port": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"database": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2023-08-02 10:19:31 +00:00
|
|
|
"socket_path": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
"username": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"encrypted": true
|
|
|
|
|
}
|
2021-09-22 05:13:12 +00:00
|
|
|
}
|
|
|
|
|
},
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {
|
2023-08-02 10:19:31 +00:00
|
|
|
"connection_type": {
|
|
|
|
|
"value": "hostname"
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
"host": {
|
|
|
|
|
"value": "localhost"
|
|
|
|
|
},
|
|
|
|
|
"port": {
|
|
|
|
|
"value": 3306
|
|
|
|
|
},
|
|
|
|
|
"database": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
2023-08-02 10:19:31 +00:00
|
|
|
"socket": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
"username": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"ssl_enabled": {
|
2023-08-02 10:19:31 +00:00
|
|
|
"value": false
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|
2021-11-22 08:22:32 +00:00
|
|
|
},
|
2021-09-15 02:50:55 +00:00
|
|
|
"properties": {
|
2023-08-02 10:19:31 +00:00
|
|
|
"connection_type": {
|
|
|
|
|
"label": "Connection type",
|
|
|
|
|
"key": "connection_type",
|
|
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for connection type",
|
|
|
|
|
"list": [
|
|
|
|
|
{
|
|
|
|
|
"value": "hostname",
|
|
|
|
|
"name": "Hostname"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "socket_path",
|
|
|
|
|
"name": "Socket"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"commonFields": {
|
|
|
|
|
"username": {
|
|
|
|
|
"label": "Username",
|
|
|
|
|
"key": "username",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter username"
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"label": "Password",
|
|
|
|
|
"key": "password",
|
|
|
|
|
"type": "password",
|
|
|
|
|
"description": "Enter password"
|
|
|
|
|
},
|
|
|
|
|
"database": {
|
|
|
|
|
"label": "Database Name",
|
|
|
|
|
"key": "database",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Name of the database"
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-15 02:50:55 +00:00
|
|
|
},
|
2023-08-02 10:19:31 +00:00
|
|
|
"hostname": {
|
|
|
|
|
"host": {
|
|
|
|
|
"label": "Host",
|
|
|
|
|
"key": "host",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter host"
|
|
|
|
|
},
|
|
|
|
|
"port": {
|
|
|
|
|
"label": "Port",
|
|
|
|
|
"key": "port",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter port"
|
|
|
|
|
},
|
|
|
|
|
"ssl_enabled": {
|
|
|
|
|
"label": "SSL",
|
|
|
|
|
"key": "ssl_enabled",
|
|
|
|
|
"type": "toggle",
|
|
|
|
|
"description": "Toggle for ssl_enabled"
|
|
|
|
|
}
|
2021-09-15 02:50:55 +00:00
|
|
|
},
|
2023-08-02 10:19:31 +00:00
|
|
|
"socket_path": {
|
|
|
|
|
"socket": {
|
|
|
|
|
"label": "Socket Path",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"name": "socket_path",
|
|
|
|
|
"description": "Enter the socket path"
|
|
|
|
|
}
|
2021-09-15 02:50:55 +00:00
|
|
|
}
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
"required": [
|
2023-08-02 10:19:31 +00:00
|
|
|
"connection_type",
|
2022-01-27 05:25:16 +00:00
|
|
|
"port",
|
|
|
|
|
"username",
|
|
|
|
|
"password"
|
|
|
|
|
]
|
2023-08-02 10:19:31 +00:00
|
|
|
}
|