ToolJet/plugins/packages/postgresql/lib/manifest.json
2024-10-28 23:37:40 +05:30

210 lines
No EOL
4.9 KiB
JSON

{
"$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"
},
"connection_string": {
"type": "string",
"encrypted": true
}
},
"exposedVariables": {
"isLoading": false,
"data": {},
"rawData": {}
}
},
"defaults": {
"connection_type": {
"value": "manual"
},
"host": {
"value": "localhost"
},
"port": {
"value": 5432
},
"database": {
"value": ""
},
"username": {
"value": ""
},
"password": {
"value": ""
},
"ssl_enabled": {
"value": true
},
"ssl_certificate": {
"value": "none"
}
},
"properties": {
"connection_type": {
"label": "Connection type",
"key": "connection_type",
"type": "dropdown-component-flip",
"description": "Single select dropdown for connection_type",
"list": [
{
"name": "Manual connection",
"value": "manual"
},
{
"name": "Connection string",
"value": "string"
}
]
},
"manual": {
"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",
"width":"316px"
}
}
},
"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"
}
}
},
"string": {
"connection_string": {
"label": "Connection string",
"key": "connection_string",
"type": "text",
"encrypted": true,
"description": "postgres://username:password@hostname:port/database?sslmode=require"
}
}
},
"required": [
"host",
"port",
"username",
"database",
"password"
]
}