ToolJet/frontend/src/Editor/DataSourceManager/SourceComponents/Database/Mysql.schema.json

71 lines
1.7 KiB
JSON
Raw Normal View History

{
"$schema": "https://json-schema.org/",
"$id": "https://tooljet.io/Mysql.schema.json",
"title": "Mysql datasource",
"description": "A schema defining mysql datasource",
"type": "object",
"source": {
"name": "MySQL",
"kind": "mysql",
"exposedVariables": {
"isLoading": {},
"data": {},
"rawData": {}
},
"options": {
"host": { "type": "string" },
"port": { "type": "string" },
"database": { "type": "string" },
"username": { "type": "string" },
"password": { "type": "string", "encrypted": true }
}
},
"defaults": {
"host": { "value": "localhost" },
"port": { "value": 3306 },
"database": { "value": "" },
"username": { "value": "" },
"password": { "value": "" },
"ssl_enabled": { "value": true }
},
"properties": {
"host": {
"$label": "Host",
"$key": "host",
"type": "text",
"description": "Enter host"
},
"port": {
"$label": "Port",
"$key": "port",
"type": "text",
"description": "Enter port"
},
"database": {
"$label": "Database Name",
"$key": "database",
"type": "text",
"description": "Name of the database"
},
"ssl_enabled": {
"$label": "SSL",
"$key": "ssl_enabled",
"type": "toggle",
"description": "Toggle for ssl_enabled"
},
"username": {
"$label": "Username",
"$key": "username",
"type": "text",
"description": "Enter username"
},
"password": {
"$label": "Password",
"$key": "password",
"type": "password",
"description": "Enter password"
}
},
"required": ["host", "port", "username", "password"]
}