feat: add runtime DB switching with SSH remote support#13
Open
sparkleholic wants to merge 4 commits intoLadybugDB:masterfrom
Open
feat: add runtime DB switching with SSH remote support#13sparkleholic wants to merge 4 commits intoLadybugDB:masterfrom
sparkleholic wants to merge 4 commits intoLadybugDB:masterfrom
Conversation
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.
Contributor
|
@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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Test