2021-09-15 02:50:55 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "https://json-schema.org/",
|
|
|
|
|
"$id": "https://tooljet.io/Postgresql.schema.json",
|
|
|
|
|
"title": "Postgresql datasource",
|
|
|
|
|
"description": "A schema defining postgresql datasource",
|
|
|
|
|
"type": "object",
|
2021-09-22 05:13:12 +00:00
|
|
|
"source": {
|
|
|
|
|
"name": "PostgreSQL",
|
|
|
|
|
"kind": "postgresql",
|
|
|
|
|
"options": {
|
|
|
|
|
"host": { "type": "string" },
|
|
|
|
|
"port": { "type": "string" },
|
|
|
|
|
"database": { "type": "string" },
|
|
|
|
|
"username": { "type": "string" },
|
|
|
|
|
"password": { "type": "string", "encrypted": true }
|
|
|
|
|
},
|
|
|
|
|
"exposedVariables": {
|
|
|
|
|
"isLoading": {},
|
|
|
|
|
"data": {},
|
|
|
|
|
"rawData": {}
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-09-15 02:50:55 +00:00
|
|
|
"properties": {
|
|
|
|
|
"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",
|
2021-09-22 05:13:12 +00:00
|
|
|
"description": "Enter username"
|
2021-09-15 02:50:55 +00:00
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"$label": "Password",
|
|
|
|
|
"$key": "password",
|
|
|
|
|
"type": "password",
|
2021-09-22 05:13:12 +00:00
|
|
|
"description": "Enter password"
|
2021-09-15 02:50:55 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": ["host", "port", "username", "database", "password"]
|
|
|
|
|
}
|