-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
308 lines (308 loc) · 9.24 KB
/
Copy pathpackage.json
File metadata and controls
308 lines (308 loc) · 9.24 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
{
"name": "oracle-sql-notebook",
"displayName": "Oracle SQL Notebook",
"description": "Run Oracle SQL queries natively in VS Code notebooks (.isqlnb).",
"version": "0.0.4",
"publisher": "akrambel2115",
"license": "MIT",
"icon": "media/icons/extension-icon.png",
"homepage": "https://github.com/akrambel2115/oracle-sql-notebook#readme",
"bugs": {
"url": "https://github.com/akrambel2115/oracle-sql-notebook/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/akrambel2115/oracle-sql-notebook.git"
},
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Notebooks",
"Data Science",
"Other"
],
"keywords": [
"oracle",
"sql",
"notebook",
"database"
],
"main": "./dist/extension.js",
"activationEvents": [
"onNotebook:oracle-sql-notebook",
"onLanguage:sql",
"onCommand:oracleSqlNotebook.convertNotebookToSql",
"onCommand:oracleSqlNotebook.convertSqlToNotebook"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Notebook execution and credential operations require a trusted workspace."
}
},
"contributes": {
"languages": [
{
"id": "oracle-sql-notebook-file",
"aliases": [
"Oracle SQL Notebook"
],
"extensions": [
".isqlnb"
],
"icon": {
"light": "media/icons/isqlnb-light.svg",
"dark": "media/icons/isqlnb-dark.svg"
}
}
],
"notebooks": [
{
"type": "oracle-sql-notebook",
"displayName": "Oracle SQL Notebook",
"selector": [
{
"filenamePattern": "*.isqlnb"
}
]
}
],
"notebookRenderer": [
{
"id": "oracleSqlNotebook.tableRenderer",
"displayName": "Oracle SQL Table Renderer",
"entrypoint": "./media/tableRenderer.js",
"mimeTypes": [
"application/vnd.oracle-sql-notebook.table+json",
"application/vnd.oracle-sql-notebook.plan+json"
]
}
],
"commands": [
{
"command": "oracleSqlNotebook.configureConnection",
"title": "Oracle SQL Notebook: Configure Connection"
},
{
"command": "oracleSqlNotebook.setConnectionPassword",
"title": "Oracle SQL Notebook: Set Connection Password"
},
{
"command": "oracleSqlNotebook.clearConnectionPassword",
"title": "Oracle SQL Notebook: Clear Connection Password"
},
{
"command": "oracleSqlNotebook.exportPdf",
"title": "Oracle SQL Notebook: Export Notebook as PDF"
},
{
"command": "oracleSqlNotebook.exportHtml",
"title": "Oracle SQL Notebook: Export Notebook as HTML"
},
{
"command": "oracleSqlNotebook.convertNotebookToSql",
"title": "Oracle SQL Notebook: Convert Notebook to SQL"
},
{
"command": "oracleSqlNotebook.convertSqlToNotebook",
"title": "Oracle SQL Notebook: Convert SQL to Notebook"
}
],
"menus": {
"notebook/toolbar": [
{
"command": "oracleSqlNotebook.convertNotebookToSql",
"when": "notebookType == 'oracle-sql-notebook'",
"group": "navigation@49"
},
{
"command": "oracleSqlNotebook.exportPdf",
"when": "notebookType == 'oracle-sql-notebook'",
"group": "navigation@50"
},
{
"command": "oracleSqlNotebook.exportHtml",
"when": "notebookType == 'oracle-sql-notebook'",
"group": "navigation@51"
}
],
"explorer/context": [
{
"command": "oracleSqlNotebook.convertNotebookToSql",
"when": "resourceExtname == .isqlnb",
"group": "navigation@60"
},
{
"command": "oracleSqlNotebook.convertSqlToNotebook",
"when": "resourceExtname == .sql",
"group": "navigation@61"
}
],
"editor/title": [
{
"command": "oracleSqlNotebook.convertNotebookToSql",
"when": "resourceExtname == .isqlnb",
"group": "navigation@60"
},
{
"command": "oracleSqlNotebook.convertSqlToNotebook",
"when": "resourceExtname == .sql",
"group": "navigation@61"
}
]
},
"configuration": {
"title": "Oracle SQL Notebook",
"properties": {
"oracleSqlNotebook.defaultConnectionAlias": {
"type": "string",
"default": "",
"markdownDescription": "Default connection alias used when notebook metadata has no `connectionAlias`."
},
"oracleSqlNotebook.connections": {
"type": "array",
"default": [],
"description": "Non-secret Oracle connection profiles. Passwords are stored separately in SecretStorage.",
"items": {
"type": "object",
"required": [
"alias",
"user",
"connectString"
],
"properties": {
"alias": {
"type": "string",
"description": "Unique profile alias."
},
"user": {
"type": "string",
"description": "Database user name."
},
"connectString": {
"type": "string",
"description": "Oracle connect descriptor, EZCONNECT string, or service alias."
},
"poolMin": {
"type": "number",
"default": 0
},
"poolMax": {
"type": "number",
"default": 4
},
"poolIncrement": {
"type": "number",
"default": 1
}
}
}
},
"oracleSqlNotebook.execution.maxRows": {
"type": "number",
"default": 1000,
"minimum": 1,
"description": "Maximum rows rendered in notebook output for SELECT-like statements."
},
"oracleSqlNotebook.execution.callTimeoutMs": {
"type": "number",
"default": 30000,
"minimum": 1000,
"description": "Maximum duration for each Oracle round-trip call in milliseconds."
},
"oracleSqlNotebook.execution.fetchArraySize": {
"type": "number",
"default": 100,
"minimum": 1,
"description": "Row batch size fetched by node-oracledb into Node.js."
},
"oracleSqlNotebook.execution.prefetchRows": {
"type": "number",
"default": 100,
"minimum": 0,
"description": "Prefetch row count used by node-oracledb before iterative fetches."
},
"oracleSqlNotebook.pool.queueTimeoutMs": {
"type": "number",
"default": 60000,
"minimum": 0,
"description": "How long getConnection waits in pool queue before timing out."
},
"oracleSqlNotebook.pool.poolTimeoutSeconds": {
"type": "number",
"default": 300,
"minimum": 0,
"description": "Seconds before idle pooled connections are terminated."
},
"oracleSqlNotebook.pool.stmtCacheSize": {
"type": "number",
"default": 30,
"minimum": 0,
"description": "Statements cached per connection."
},
"oracleSqlNotebook.security.readOnlyMode": {
"type": "boolean",
"default": false,
"description": "When enabled, only SELECT/CTE queries are allowed."
},
"oracleSqlNotebook.security.blockedStatementPrefixes": {
"type": "array",
"default": [
"ALTER SYSTEM",
"DROP USER"
],
"items": {
"type": "string"
},
"description": "Upper-cased SQL prefixes blocked before execution."
},
"oracleSqlNotebook.logging.level": {
"type": "string",
"enum": [
"error",
"warn",
"info",
"debug"
],
"default": "info",
"description": "Output channel verbosity."
}
}
}
},
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && node esbuild.mjs --production",
"watch": "node esbuild.mjs --watch",
"typecheck": "tsc --noEmit",
"lint": "eslint --max-warnings=0 \"src/**/*.ts\"",
"check": "npm run lint && npm run typecheck",
"test": "vitest run",
"test:integration": "vitest run test/integration/**/*.test.ts",
"test:watch": "vitest",
"pretest:e2e": "npm run build",
"test:e2e": "node ./test/e2e/runTests.js",
"prepackage": "npm run check && npm run test && npm run build",
"package": "vsce package"
},
"dependencies": {
"markdown-it": "^14.1.1",
"oracledb": "^6.9.0"
},
"devDependencies": {
"@types/markdown-it": "^14.1.2",
"@types/node": "^20.17.30",
"@types/oracledb": "^6.10.3",
"@types/vscode": "^1.90.0",
"@typescript-eslint/eslint-plugin": "^8.30.1",
"@typescript-eslint/parser": "^8.30.1",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.9.1",
"esbuild": "^0.25.2",
"eslint": "^8.57.1",
"rimraf": "^6.0.1",
"typescript": "^5.8.3",
"vitest": "^3.1.2"
}
}