@youtyan/code-viewer 0.7.0 → 0.8.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/README.md CHANGED
@@ -199,6 +199,7 @@ root:
199
199
  - `annotations.json` — AI Code Annotations.
200
200
  - `query-history.json` — datastore query history.
201
201
  - `db-snapshots.sqlite` — datastore snapshots and diff blobs.
202
+ - `datastore-connections.json` — saved non-secret datastore connection settings.
202
203
 
203
204
  The `.code-viewer` directory is tool-internal: it never shows up in the file
204
205
  tree, searches, or diffs. Add it to `.gitignore` if you do not want to share
@@ -273,6 +274,22 @@ constraint violation.
273
274
 
274
275
  Open Datastores in the global navigation to access:
275
276
 
277
+ - **Saved connections** — use the `+` action beside the datastore selector to
278
+ add PostgreSQL, MySQL, Redis, Elasticsearch, S3-compatible, or DynamoDB
279
+ endpoints that are not present in the repository's local discovery files.
280
+ Required fields are marked in the connection dialog, and **Test connection**
281
+ verifies the current values before saving. Saved connections can be edited
282
+ or deleted from the adjacent actions.
283
+ PostgreSQL, MySQL, and Redis use Node.js drivers installed automatically with
284
+ this package, while Elasticsearch, S3, and DynamoDB use built-in HTTP
285
+ clients. No database CLI or `curl` installation is required for saved
286
+ connections.
287
+ Non-secret settings are stored in `.code-viewer/datastore-connections.json`.
288
+ User names, access key IDs, passwords, secret keys, and session tokens remain
289
+ in server memory only and are never written to that file or returned by
290
+ list/edit responses, so they must be entered again after restarting
291
+ code-viewer.
292
+
276
293
  - **Multi-DB tabs** — open multiple databases side by side, with their own
277
294
  sidebar, panes, and history. `+` adds an empty tab; `×` or middle-click
278
295
  closes one (the last tab resets to empty instead of vanishing). Tabs can be