ToolJet/plugins/packages/postgresql/lib/operations.json
Siddharth Pundir acc491033a
Feat/pgsql mongo ssh and db improvements (#15367)
* PgSQL ssh implementations and other improvements

* Updated the package.json

* Mongo db ssh implementation and improvements

* Updated the helper text and database label

* Updated the helper text for password

* Fixing the autofetch for the mongo

* Fixing autofetch for the pgsql

* Updated the ssl toggle title

* Updated the common toggle logic

* Bump version to 3.20.114-lts across all components

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2026-03-05 20:49:57 +05:30

119 lines
No EOL
3.4 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
"title": "Postgresql datasource",
"description": "A schema defining Postgresql 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": "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 or enter table name",
"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": "{{ [ ] }}"
}
}
}
}
}