ToolJet/plugins/packages/mysql/lib/manifest.json
2024-10-28 23:37:40 +05:30

206 lines
4.6 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json",
"title": "Mysql datasource",
"description": "A schema defining mysql datasource",
"type": "database",
"source": {
"name": "MySQL",
"kind": "mysql",
"exposedVariables": {
"isLoading": false,
"data": {},
"rawData": {}
},
"options": {
"connection_type": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "string"
},
"database": {
"type": "string"
},
"socket_path": {
"type": "string"
},
"username": {
"type": "string"
},
"password": {
"type": "string",
"encrypted": true
},
"ca_cert": {
"encrypted": true
},
"client_key": {
"encrypted": true
},
"client_cert": {
"encrypted": true
},
"root_cert": {
"encrypted": true
}
}
},
"defaults": {
"connection_type": {
"value": "hostname"
},
"host": {
"value": "localhost"
},
"port": {
"value": 3306
},
"database": {
"value": ""
},
"socket": {
"value": ""
},
"username": {
"value": ""
},
"password": {
"value": ""
},
"ssl_enabled": {
"value": false
},
"ssl_certificate": {
"value": "none"
}
},
"properties": {
"ssl_certificate": {
"label": "SSL certificate",
"key": "ssl_certificate",
"type": "dropdown-component-flip",
"description": "Single select dropdown for choosing certificates",
"list": [
{
"value": "ca_certificate",
"name": "CA certificate"
},
{
"value": "self_signed",
"name": "Self-signed certificate"
},
{
"value": "none",
"name": "None"
}
],
"commonFields": {
"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"
}
}
},
"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"
}
},
"socket_path": {
"socket": {
"label": "Socket path",
"type": "text",
"name": "socket_path",
"description": "Enter the socket path"
}
}
}
},
"ca_certificate": {
"ca_cert": {
"label": "CA cert",
"key": "ca_cert",
"type": "textarea",
"encrypted": true,
"description": "Enter ca certificate"
}
},
"self_signed": {
"client_key": {
"label": "Client key",
"key": "client_key",
"type": "textarea",
"encrypted": true,
"description": "Enter client key"
},
"client_cert": {
"label": "Client cert",
"key": "client_cert",
"type": "textarea",
"encrypted": true,
"description": "Enter client certificate"
},
"root_cert": {
"label": "Root cert",
"key": "root_cert",
"type": "textarea",
"encrypted": true,
"description": "Enter root certificate"
}
}
},
"required": [
"connection_type",
"port",
"username",
"password"
]
}