Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
313 lines (313 loc) · 9.86 KB
/
Copy pathpackage.json
File metadata and controls
313 lines (313 loc) · 9.86 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
309
310
311
312
313
{
"icon": "media/icon.png",
"name": "sqlite-explorer",
"displayName": "SQLite Explorer",
"description": "A powerful SQLite database viewer and editor for VS Code",
"version": "1.8.3",
"publisher": "zknpr",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/zknpr/sqlite-explorer"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/zknpr"
},
{
"type": "ko-fi",
"url": "https://ko-fi.com/zknpr"
},
{
"type": "BuyMeACoffee",
"url": "https://buymeacoffee.com/zknpr"
}
],
"engines": {
"vscode": "^1.110.0"
},
"categories": [
"Visualization",
"Data Science",
"Other"
],
"keywords": [
"sqlite",
"sqlite3",
"sqlite viewer",
"sqlite editor",
"database",
"database viewer",
"database editor",
"db browser",
"sql",
"db",
"db3",
"gpkg",
"geopackage",
"data grid"
],
"galleryBanner": {
"color": "#1b1f2a",
"theme": "dark"
},
"main": "./out/extension.js",
"browser": "./out/extension-browser.js",
"extensionKind": [
"workspace",
"ui"
],
"l10n": "./l10n",
"contributes": {
"languages": [
{
"id": "sql",
"extensions": [
".sqlite",
".sqlite3",
".db",
".db3",
".sdb",
".s3db",
".gpkg"
]
}
],
"customEditors": [
{
"viewType": "sqlite-explorer.view",
"displayName": "SQLite Explorer",
"selector": [
{
"filenamePattern": "*.sqlite"
},
{
"filenamePattern": "*.sqlite3"
},
{
"filenamePattern": "*.db"
},
{
"filenamePattern": "*.db3"
},
{
"filenamePattern": "*.sdb"
},
{
"filenamePattern": "*.s3db"
},
{
"filenamePattern": "*.gpkg"
}
]
},
{
"viewType": "sqlite-explorer.option",
"displayName": "SQLite Explorer (Optional)",
"selector": [
{
"filenamePattern": "*"
}
],
"priority": "option"
}
],
"configuration": {
"title": "SQLite Explorer",
"properties": {
"sqliteExplorer.maxFileSize": {
"type": "number",
"minimum": 0,
"maximum": 4000,
"exclusiveMinimum": false,
"default": 200,
"markdownDescription": "Maximum database size in MB for WebAssembly opens and buffered file-copy operations. Native database opens are not limited by this setting. Set to 0 for unlimited."
},
"sqliteExplorer.defaultPageSize": {
"type": "number",
"minimum": 10,
"maximum": 100000,
"default": 5000,
"markdownDescription": "Default number of rows to display per page."
},
"sqliteExplorer.instantCommit": {
"type": "string",
"enum": [
"always",
"never",
"remote-only"
],
"default": "never",
"markdownDescription": "Controls when changes are saved to disk by the in-memory WASM backend. On the native desktop backend (the default), edits are written to the database file immediately regardless of this setting.\n- `always`: Changes are saved immediately.\n- `never`: Changes are kept in memory until manually saved.\n- `remote-only`: Auto-save only in remote workspaces."
},
"sqliteExplorer.doubleClickBehavior": {
"type": "string",
"enum": [
"inline",
"modal",
"vscode"
],
"default": "inline",
"markdownDescription": "Controls the action when double-clicking a cell.\n- `inline`: Start inline editing (default).\n- `modal`: Open detail preview modal.\n- `vscode`: Open in VS Code editor tab."
},
"sqliteExplorer.fileOperations": {
"type": "string",
"enum": [
"native",
"web"
],
"default": "native",
"markdownDescription": "Controls how file operations (save/upload) behave in the blob inspector.\n- `native`: Use VS Code file dialogs (default).\n- `web`: Use browser download/upload (for web demo compatibility)."
},
"sqliteExplorer.queryTimeout": {
"type": "number",
"minimum": 1000,
"maximum": 600000,
"default": 30000,
"markdownDescription": "Maximum time in milliseconds for query execution before timeout. Prevents runaway queries from freezing the extension. Set to a higher value for complex queries on large databases."
},
"sqliteExplorer.maxInlineCellBytes": {
"type": "number",
"minimum": 1024,
"maximum": 16777216,
"default": 1048576,
"markdownDescription": "Maximum source bytes fetched inline for one TEXT or BLOB grid cell. The 1 MiB default keeps ordinary values inline while containing the 609–896 MiB RSS amplification observed when a 256 MiB cell crossed the grid/IPC path. A fixed 16 MiB page budget may reduce the effective preview for wide or large pages."
},
"sqliteExplorer.maxUndoMemory": {
"type": "number",
"minimum": 1048576,
"maximum": 536870912,
"default": 52428800,
"markdownDescription": "Maximum memory in bytes for undo/redo history. When exceeded, oldest entries are discarded. Default is 50MB (52428800 bytes)."
}
}
},
"commands": [
{
"command": "sqlite-explorer.importData",
"title": "Import CSV or JSON",
"category": "SQLite Explorer"
},
{
"command": "sqlite-explorer.refresh",
"title": "Refresh Database",
"category": "SQLite Explorer"
},
{
"command": "sqlite-explorer.newQuery",
"title": "New SQL Query",
"icon": "$(code)",
"category": "SQLite Explorer"
},
{
"command": "sqlite-explorer.chooseQueryDatabase",
"title": "Choose Query Database",
"category": "SQLite Explorer"
},
{
"command": "sqlite-explorer.runQuery",
"title": "Run Query",
"icon": "$(play)",
"category": "SQLite Explorer"
},
{
"command": "sqlite-explorer.explainQuery",
"title": "Explain Query Plan",
"icon": "$(list-tree)",
"category": "SQLite Explorer"
},
{
"command": "sqlite-explorer.refreshQueryCompletions",
"title": "Refresh Query Completions",
"category": "SQLite Explorer"
},
{
"command": "sqlite-explorer.queryHistory",
"title": "Query History (Session)",
"category": "SQLite Explorer"
},
{
"command": "sqlite-explorer.clearQueryHistory",
"title": "Clear Query History",
"category": "SQLite Explorer"
},
{
"command": "sqlite-explorer.exportQueryResults",
"title": "Export Query Results",
"icon": "$(export)",
"category": "SQLite Explorer"
}
],
"menus": {
"editor/title": [
{
"command": "sqlite-explorer.runQuery",
"when": "editorLangId == sql || editorLangId == sqlite",
"group": "navigation"
},
{
"command": "sqlite-explorer.explainQuery",
"when": "editorLangId == sql || editorLangId == sqlite",
"group": "navigation"
},
{
"command": "sqlite-explorer.exportQueryResults",
"when": "resourceScheme == sqlite-query-result",
"group": "navigation"
}
]
}
},
"scripts": {
"clean": "rm -rf out && rm -rf assets",
"vscode:prepublish": "echo 'Skipping build for packaging'",
"compile:ext": "npm run compile:ext:cp & npm run compile:ext:js & wait",
"compile:ext:cp": "cp -r node_modules/@vscode/codicons node_modules/codicons",
"compile:ext:js": "node scripts/build.mjs",
"compile": "npm run clean && npm run compile:ext",
"build": "npm run compile",
"package": "node scripts/package-vsix.mjs",
"package-all": "node scripts/package-vsix.mjs",
"test": "npx tsx --tsconfig tsconfig.test.json --test tests/unit/*.test.ts",
"compile:desktop-tests": "rm -rf .desktop-test-out && tsc -p tsconfig.desktop.json",
"test:desktop": "npm run compile:desktop-tests && node scripts/run-desktop-tests.mjs",
"test:gui": "node tests/gui/installed-vsix.mjs",
"test:gui:lifecycle": "node tests/gui/lifecycle.mjs",
"test:gui:grid": "node tests/gui/grid-query.mjs",
"test:gui:cells": "node tests/gui/cell-workflows.mjs",
"test:gui:edges": "node tests/gui/interface-edges.mjs",
"test:gui:sharing": "node tests/gui/sharing-keys.mjs",
"test:gui:progress": "node tests/gui/progress-cancellation.mjs",
"test:gui:interactions": "node tests/gui/interaction-details.mjs",
"test:gui:contention": "node tests/gui/native-contention.mjs",
"test:gui:uploads": "node tests/gui/drop-upload.mjs",
"test:native-smoke": "node --import tsx --test tests/unit/native_real_smoke.test.ts",
"test:native-fuzz": "node --import tsx --test tests/fuzz/native_attach_fuzz.test.ts"
},
"devDependencies": {
"@types/node": "^26.6.5",
"@types/vscode": "=1.110.0",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "^4.0.0",
"esbuild": "^0.28.2",
"esbuild-plugin-polyfill-node": "^0.3.0",
"mocha": "^12.0.3",
"ovsx": "1.3.0",
"playwright-core": "1.64.1",
"ts-node": "^10.9.2",
"tsx": "^4.23.15",
"typescript": "^6.0.3"
},
"dependencies": {
"@scure/base": "^2.4.0",
"@vscode/codicons": "^0.0.45",
"@vscode/extension-telemetry": "^1.5.2",
"sql.js": "^1.15.0"
},
"overrides": {
"qs": "^6.16.0",
"js-yaml@^4.0.0": "^4.3.2",
"serialize-javascript": ">=7.0.5"
}
}