generated from mtxr/vsc-sqltools-driver-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconnection.schema.json
96 lines (96 loc) · 2.34 KB
/
connection.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"definitions": {
"server": {
"title": "Server Name",
"type": "string",
"minLength": 1
},
"port": {
"title": "Server Port",
"type": "number",
"minLength": 1,
"default": 1025
},
"username": {
"title": "Username",
"type": "string",
"minLength": 1
},
"usePassword": {
"title": "Use Password",
"type": "string",
"enum": ["Ask on Connect", "Save Password"],
"default": "Ask on Connect"
},
"password": {
"title": "Password",
"type": "string",
"minLength": 1
},
"encryptdata": {
"title": "Encrypt Data",
"type": "boolean",
"default": true
},
"showuserdbs": {
"title": "Show Users as DBs",
"type": "boolean",
"default": false
}
},
"properties": {
"server": { "$ref": "#/definitions/server" },
"port": { "$ref": "#/definitions/port" },
"username": { "$ref": "#/definitions/username" },
"usePassword": { "$ref": "#/definitions/usePassword" },
"tdsqlpreferences": {
"title": "Connection preferences",
"type": "object",
"properties": {
"showuserdbs": { "$ref": "#/definitions/showuserdbs" }
}
},
"tdsqloptions": {
"title": "Teradata driver connection options",
"type": "object",
"properties": {
"logmech": {
"title": "Login Mechanism",
"type": "string",
"minLength": 1,
"enum": ["TD2", "LDAP", "KRB5", "TDNEGO"],
"default": "TD2"
},
"encryptdata": { "$ref": "#/definitions/encryptdata" },
"tmode": {
"title": "Connection Mode",
"type": "string",
"minLength": 1,
"enum": ["ANSI", "TERA"],
"default": "ANSI"
}
}
}
},
"dependencies": {
"usePassword": {
"oneOf": [
{
"properties": {
"usePassword": { "enum": ["Ask on Connect"] },
"askForPassword": { "type": "boolean", "default": true }
}
},
{
"properties": {
"usePassword": { "enum": ["Save Password"] },
"password": { "$ref": "#/definitions/password" }
}
}
]
}
},
"required": ["username", "server", "port"]
}