feat: add runtime DB switching with SSH remote support#13
Conversation
|
@sparkleholic - have you looked into https://github.com/LadybugDB/bugscope? These type of features may fit in more naturally there. It also doesn't have the REST API bottleneck. The main use case for this repo is a hard requirement to be browser based. |
|
Add a "DB" sidebar menu that lets users switch the active database without restarting the server. Supports file-based (directory + filename) and in-memory modes. The server reconfigures the live connection pool and the UI reloads the schema automatically after applying.
Add a "Remote (SSH)" option to the DB configuration modal. The server mounts the remote directory via sshfs into a local temp path and opens the database from there, so the connection is live (read-write, no manual sync needed). Supports password auth (requires sshpass) and private key file auth. The active SSH config (minus password) is returned by GET /api/db and pre-populates the modal on re-open. Switching away from SSH mode automatically unmounts the filesystem.
Changes
Test