{ "$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json", "title": "Postgresql datasource", "description": "A schema defining postgresql datasource", "type": "database", "source": { "name": "PostgreSQL", "kind": "postgresql", "options": { "host": { "type": "string" }, "port": { "type": "string" }, "database": { "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 }, "connection_options": { "type": "array" } }, "exposedVariables": { "isLoading": false, "data": {}, "rawData": {} } }, "defaults": { "host": { "value": "localhost" }, "port": { "value": 5432 }, "database": { "value": "" }, "username": { "value": "" }, "password": { "value": "" }, "ssl_enabled": { "value": true }, "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": { "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" }, "database": { "label": "Database Name", "key": "database", "type": "text", "description": "Name of the database" }, "username": { "label": "Username", "key": "username", "type": "text", "description": "Enter username" }, "password": { "label": "Password", "key": "password", "type": "password", "description": "Enter password" }, "connection_options": { "label": "Connection Options", "key": "connection_options", "type": "react-component-headers" } } }, "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": [ "host", "port", "username", "database", "password" ] }