@tablecraft-app/plugin-mssql 0.0.0-stage → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,29 @@
1
1
  {
2
2
  "name": "@tablecraft-app/plugin-mssql",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.12.0",
4
+ "description": "The SQL Server datasource plugin for TableCraft, downloaded by the app when a data source needs it.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "index.js",
8
+ "files": [
9
+ "index.js",
10
+ "table-craft-plugin.json"
11
+ ],
12
+ "keywords": [
13
+ "table-craft-plugin",
14
+ "tablecraft",
15
+ "mssql"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/tranphucbol/table-craft.git",
20
+ "directory": "plugins/mssql"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "tableCraft": {
26
+ "id": "mssql",
27
+ "apiVersion": "1.5.0"
28
+ }
29
+ }
@@ -0,0 +1,250 @@
1
+ {
2
+ "id": "mssql",
3
+ "name": "SQL Server",
4
+ "version": "1.12.0",
5
+ "apiVersion": "1.5.0",
6
+ "entry": "index.js",
7
+ "capabilities": [
8
+ "sql",
9
+ "cancel",
10
+ "schemaTree",
11
+ "transactions",
12
+ "ddl",
13
+ "explain",
14
+ "explainAnalyze",
15
+ "currentNamespace",
16
+ "keepAlive",
17
+ "bulkInsert",
18
+ "objects",
19
+ "serverMessages",
20
+ "sessions",
21
+ "routineCall"
22
+ ],
23
+ "highlight": "mssql",
24
+ "connection": {
25
+ "fields": [
26
+ {
27
+ "key": "host",
28
+ "label": "Host",
29
+ "kind": "text",
30
+ "default": "localhost",
31
+ "required": true
32
+ },
33
+ {
34
+ "key": "port",
35
+ "label": "Port",
36
+ "kind": "number",
37
+ "default": 1433
38
+ },
39
+ {
40
+ "key": "instance",
41
+ "label": "Instance",
42
+ "kind": "text",
43
+ "placeholder": "Named instance, instead of a port"
44
+ },
45
+ {
46
+ "key": "database",
47
+ "label": "Database",
48
+ "kind": "text",
49
+ "placeholder": "The login's default database"
50
+ },
51
+ {
52
+ "key": "authentication",
53
+ "label": "Authentication",
54
+ "kind": "select",
55
+ "default": "sql",
56
+ "options": [
57
+ {
58
+ "value": "sql",
59
+ "label": "SQL Server"
60
+ },
61
+ {
62
+ "value": "ntlm",
63
+ "label": "Windows (NTLM)"
64
+ },
65
+ {
66
+ "value": "azure-active-directory-password",
67
+ "label": "Microsoft Entra password"
68
+ },
69
+ {
70
+ "value": "azure-active-directory-default",
71
+ "label": "Microsoft Entra default credential"
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "key": "user",
77
+ "label": "User",
78
+ "kind": "text"
79
+ },
80
+ {
81
+ "key": "password",
82
+ "label": "Password",
83
+ "kind": "password",
84
+ "secret": true
85
+ },
86
+ {
87
+ "key": "domain",
88
+ "label": "Domain",
89
+ "kind": "text",
90
+ "visibleWhen": {
91
+ "key": "authentication",
92
+ "equals": "ntlm"
93
+ }
94
+ },
95
+ {
96
+ "key": "clientId",
97
+ "label": "Client ID",
98
+ "kind": "text",
99
+ "visibleWhen": {
100
+ "key": "authentication",
101
+ "equals": "azure-active-directory-password"
102
+ }
103
+ },
104
+ {
105
+ "key": "tenantId",
106
+ "label": "Tenant ID",
107
+ "kind": "text",
108
+ "visibleWhen": {
109
+ "key": "authentication",
110
+ "equals": "azure-active-directory-password"
111
+ }
112
+ },
113
+ {
114
+ "key": "encrypt",
115
+ "label": "Encrypt",
116
+ "kind": "select",
117
+ "default": "mandatory",
118
+ "group": "advanced",
119
+ "options": [
120
+ {
121
+ "value": "optional",
122
+ "label": "Optional"
123
+ },
124
+ {
125
+ "value": "mandatory",
126
+ "label": "Mandatory"
127
+ },
128
+ {
129
+ "value": "strict",
130
+ "label": "Strict (TDS 8.0)"
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "key": "trustServerCertificate",
136
+ "label": "Trust server certificate",
137
+ "kind": "checkbox",
138
+ "default": false,
139
+ "group": "advanced"
140
+ },
141
+ {
142
+ "key": "sslRootCert",
143
+ "label": "Server CA certificate",
144
+ "kind": "file",
145
+ "group": "advanced"
146
+ },
147
+ {
148
+ "key": "connectTimeout",
149
+ "label": "Connect timeout (s)",
150
+ "kind": "number",
151
+ "default": 10,
152
+ "group": "advanced"
153
+ },
154
+ {
155
+ "key": "applicationName",
156
+ "label": "Application name",
157
+ "kind": "text",
158
+ "default": "TableCraft",
159
+ "group": "advanced"
160
+ }
161
+ ],
162
+ "url": {
163
+ "schemes": [
164
+ "sqlserver",
165
+ "mssql"
166
+ ],
167
+ "form": "server",
168
+ "semicolonParams": true,
169
+ "parts": {
170
+ "host": "host",
171
+ "port": "port",
172
+ "database": "database",
173
+ "user": "user",
174
+ "password": "password"
175
+ },
176
+ "params": [
177
+ {
178
+ "name": "instanceName",
179
+ "key": "instance"
180
+ },
181
+ {
182
+ "name": "portNumber",
183
+ "key": "port"
184
+ },
185
+ {
186
+ "name": "databaseName",
187
+ "key": "database"
188
+ },
189
+ {
190
+ "name": "user",
191
+ "key": "user"
192
+ },
193
+ {
194
+ "name": "authentication",
195
+ "key": "authentication",
196
+ "values": {
197
+ "SqlPassword": "sql",
198
+ "NTLM": "ntlm",
199
+ "ActiveDirectoryPassword": "azure-active-directory-password",
200
+ "ActiveDirectoryDefault": "azure-active-directory-default"
201
+ }
202
+ },
203
+ {
204
+ "name": "domain",
205
+ "key": "domain"
206
+ },
207
+ {
208
+ "name": "encrypt",
209
+ "key": "encrypt",
210
+ "values": {
211
+ "false": "optional",
212
+ "true": "mandatory",
213
+ "strict": "strict",
214
+ "optional": "optional",
215
+ "mandatory": "mandatory"
216
+ }
217
+ },
218
+ {
219
+ "name": "trustServerCertificate",
220
+ "key": "trustServerCertificate"
221
+ },
222
+ {
223
+ "name": "trustStore",
224
+ "key": "sslRootCert"
225
+ },
226
+ {
227
+ "name": "loginTimeout",
228
+ "key": "connectTimeout"
229
+ },
230
+ {
231
+ "name": "applicationName",
232
+ "key": "applicationName"
233
+ }
234
+ ]
235
+ },
236
+ "network": {
237
+ "host": "host",
238
+ "port": "port",
239
+ "connectTimeout": "connectTimeout"
240
+ },
241
+ "tls": {
242
+ "mode": "encrypt",
243
+ "verifyModes": [
244
+ "mandatory",
245
+ "strict"
246
+ ],
247
+ "caFile": "sslRootCert"
248
+ }
249
+ }
250
+ }