mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-22 05:57:20 +00:00
* Feature: Prometheus plugin (#13161) * prometheus plugin * added existing props * Host and database can be dynamically configured in query builder for PostgreSQL and MySQL data sources (#13163) * Fix: Postgresql datasource tries to connect via ssl even when ssl toggle is off (#13167) * The ability to provide a partition key for deleting items in CosmosDB datasource has been enabled (#13166) * Feature: Ability to configure the database name in Redis datasource (#13165) * Fix: Avoid setting Content-Type header for requests without body and configure different host for all environments in OpenAPI [PRE-RELEASE] (#13230) * Send content-type only with body in request * Persist OpenAPI parameters per operation only * Configure different host * Add disable styles to the select input * Feat: New fields 'client id' and 'client secret' have been introduced in the Slack datasource configuration page in pre-release (#13162) * Update slack frontend * Update slack backend to handle custom creds * Add backfill migrations * Dynamically change dropdown according to versions * Change migration file name * Correctly access scope in chat:write logic --------- Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: Parth <108089718+parthy007@users.noreply.github.com> Co-authored-by: Akshay <akshaysasidrn@gmail.com>
111 lines
3.1 KiB
JSON
111 lines
3.1 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
|
"title": "Mysql datasource",
|
|
"description": "A schema defining Mysql datasource",
|
|
"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"
|
|
}
|
|
],
|
|
"commonFields": {
|
|
"host": {
|
|
"label": "Host",
|
|
"placeholder": "Leave empty to use default",
|
|
"key": "host",
|
|
"type": "codehinter",
|
|
"description": "Enter host",
|
|
"height": "150px",
|
|
"shouldRenderTheProperty": "allow_dynamic_connection_parameters"
|
|
},
|
|
"database": {
|
|
"label": "Database",
|
|
"placeholder": "Leave empty to use default",
|
|
"key": "database",
|
|
"type": "codehinter",
|
|
"description": "Enter database name",
|
|
"height": "150px",
|
|
"shouldRenderTheProperty": "allow_dynamic_connection_parameters"
|
|
}
|
|
}
|
|
},
|
|
"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 name 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": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter table",
|
|
"width": "320px",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter table"
|
|
},
|
|
"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",
|
|
"key": "records",
|
|
"type": "codehinter",
|
|
"description": "Enter records",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|