mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-23 06:27:57 +00:00
* DynamicForm Options Ordering * undo manifest * autofetch * improvements * error standardisation * ssh tunneling and ordering * bug fixes * toggle flip * helper text * ui changes * design changes * azure design changes * removed fx button from mysql * ui changes --------- Co-authored-by: Rudhra Deep Biswas <rudra21ultra@gmail.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
100 lines
No EOL
2.8 KiB
JSON
100 lines
No EOL
2.8 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
|
"title": "Mysql data query schema",
|
|
"description": "A schema defining mysql data query",
|
|
"type": "database",
|
|
"defaults": {
|
|
"mode": "sql"
|
|
},
|
|
"properties": {
|
|
"mode": {
|
|
"label": "",
|
|
"key": "mode",
|
|
"type": "dropdown-component-flip",
|
|
"description": "Single select dropdown for mode",
|
|
"list": [
|
|
{
|
|
"name": "SQL mode",
|
|
"value": "sql"
|
|
},
|
|
{
|
|
"name": "GUI mode",
|
|
"value": "gui"
|
|
}
|
|
]
|
|
},
|
|
"sql": {
|
|
"query": {
|
|
"key": "query",
|
|
"type": "codehinter",
|
|
"description": "Enter query",
|
|
"height": "150px",
|
|
"editorType": "multiline",
|
|
"placeholder": "SELECT * FROM users"
|
|
},
|
|
"query_params": {
|
|
"key": "query_params",
|
|
"label": "SQL Parameters",
|
|
"type": "react-component-headers",
|
|
"description": "Parameters for the SQL query",
|
|
"buttonText": "Add SQL parameter",
|
|
"tooltip": "Use these parameters in the SQL query using named notation < :parameter_name >"
|
|
}
|
|
},
|
|
"gui": {
|
|
"operation": {
|
|
"label": "Operation",
|
|
"key": "operation",
|
|
"type": "dropdown-component-flip",
|
|
"description": "Single select dropdown for mode",
|
|
"list": [
|
|
{
|
|
"name": "Bulk update using primary key",
|
|
"value": "bulk_update_pkey"
|
|
}
|
|
]
|
|
},
|
|
"bulk_update_pkey": {
|
|
"table": {
|
|
"label": "Table",
|
|
"key": "table",
|
|
"type": "dynamic-selector",
|
|
"fxEnabled": false,
|
|
"autoFetch": true,
|
|
"operation": {
|
|
"invokeMethod": "getTables",
|
|
"label": "Fetch Tables"
|
|
},
|
|
"lineNumbers": false,
|
|
"description": "Select a table from the dropdown",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Select table",
|
|
"order": 20
|
|
},
|
|
"primary_key_column": {
|
|
"label": "Primary key column",
|
|
"key": "primary_key_column",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter primary key column",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter primary key column"
|
|
},
|
|
"records": {
|
|
"label": "Records to update",
|
|
"key": "records",
|
|
"type": "codehinter",
|
|
"description": "Enter records",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine",
|
|
"placeholder": "{{ [ ] }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": []
|
|
} |