feat: Database Connection UI (#14881)

This commit is contained in:
Hugh A. Miles II
2021-07-01 14:40:27 -07:00
committed by GitHub
parent 7f2f51b2bd
commit d4480f5c9a
33 changed files with 3282 additions and 996 deletions

View File

@@ -470,24 +470,26 @@ def test_base_parameters_mixin():
assert json_schema == {
"type": "object",
"properties": {
"encryption": {
"type": "boolean",
"description": "Use an encrypted connection to the database",
},
"host": {"type": "string", "description": "Hostname or IP address"},
"database": {"type": "string", "description": "Database name"},
"port": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 65536,
"description": "Database port",
},
"password": {"type": "string", "nullable": True, "description": "Password"},
"host": {"type": "string", "description": "Hostname or IP address"},
"username": {"type": "string", "nullable": True, "description": "Username"},
"query": {
"type": "object",
"description": "Additional parameters",
"additionalProperties": {},
},
"database": {"type": "string", "description": "Database name"},
"encryption": {
"type": "boolean",
"description": "Use an encrypted connection to the database",
},
},
"required": ["database", "host", "port", "username"],
}