Skip to content

Commit e5996e5

Browse files
committed
SQL queries to IRIS via Atelier API
1 parent 010d2b8 commit e5996e5

File tree

12 files changed

+1135
-275
lines changed

12 files changed

+1135
-275
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
node_modules
2-
out
1+
.DS_Store
2+
node_modules/
3+
out/

connection.schema.json

Lines changed: 82 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,92 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"type": "object",
4-
"properties": {
5-
"database": {
6-
"title": "Database file",
4+
"definitions": {
5+
"namespace": {
6+
"title": "Namespace",
7+
"type": "string",
8+
"minLength": 1
9+
},
10+
"username": {
11+
"title": "Username",
712
"type": "string",
813
"minLength": 1
14+
},
15+
"askForPassword": {
16+
"title": "Ask for password?",
17+
"type": "boolean",
18+
"default": false
19+
},
20+
"password": {
21+
"title": "Password",
22+
"type": "string",
23+
"minLength": 1
24+
}
25+
},
26+
"properties": {
27+
"connectionMethod": {
28+
"title": "Connect using",
29+
"type": "string",
30+
"minLength": 1,
31+
"enum": ["Server and Port", "Server Name"],
32+
"default": "Server and Port"
33+
}
34+
},
35+
"dependencies": {
36+
"connectionMethod": {
37+
"oneOf": [
38+
{
39+
"properties": {
40+
"connectionMethod": {
41+
"enum": ["Server and Port"]
42+
},
43+
"server": {
44+
"title": "Server Address",
45+
"type": "string",
46+
"minLength": 1,
47+
"default": "localhost"
48+
},
49+
"port": {
50+
"title": "WebServer Port",
51+
"minimum": 1,
52+
"default": 52773,
53+
"type": "integer"
54+
},
55+
"namespace": { "$ref": "#/definitions/namespace" },
56+
"username": { "$ref": "#/definitions/username" },
57+
"askForPassword": { "$ref": "#/definitions/askForPassword" }
58+
},
59+
"required": ["server", "port", "namespace", "username"]
60+
},
61+
{
62+
"properties": {
63+
"connectionMethod": {
64+
"enum": ["Server Name"]
65+
},
66+
"serverName": {
67+
"title": "Server Name",
68+
"type": "string",
69+
"minLength": 1
70+
}
71+
},
72+
"required": ["connectString"]
73+
}
74+
]
75+
},
76+
"askForPassword": {
77+
"oneOf": [
78+
{ "properties": { "askForPassword": { "enum": [true] } } },
79+
{
80+
"properties": {
81+
"askForPassword": { "enum": [false] },
82+
"password": { "$ref": "#/definitions/password" }
83+
},
84+
"required": ["password"]
85+
}
86+
]
987
}
1088
},
1189
"required": [
12-
"database"
90+
"connectionMethod"
1391
]
1492
}

icons/active.png

-1.48 KB
Loading

icons/default.png

-1.53 KB
Loading

icons/inactive.png

-1.24 KB
Loading

0 commit comments

Comments
 (0)