Repository navigation
Add db-browser - #23
Merged
Merged
Conversation
Member
Author
|
Repinned to d29aa9d after running it through the review in a VM, a refused request like a query with two statements or SQL the database rejects was showing up as a plugin failure on its card, it now answers with the reason instead and only a real fault exits non zero. |
Member
Author
|
Repinned to c703777, the screenshots now show the current layout with paging in a status bar under the rows, nothing else changed besides keeping the History picker narrow in the SQL bar. |
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.
Plugin
What it does
A Database tab on each site that lists its tables, pages through rows with sort and filter, shows a table's structure, runs SQL with results as a table, JSON, text or CSV, and edits rows with the changes shown and committed in one transaction. MySQL, MariaDB and PostgreSQL go through lerd db:shell and SQLite through PHP in the site's container, so it needs no database client and no credentials.
What it adds to Lerd
A site tab, with
when: databaseso it shows only on sites that have a database, and one API endpoint,db, marked loopback only. No commands, hooks, MCP tools, notifications, services or frameworks.What it reads, changes and sends
Requirements
Lerd 1.38 or newer and Node, on Linux and macOS. Showing the tab only on sites with a database, and the picker between a site's databases, need lerd-env/lerd#2559; on an older Lerd the tab shows everywhere and opens the database lerd db:shell picks.
Images
Checklist
plugin.yamldeclareslerdas a lower bound, andplatformsif it runs on only one..envonly when the README says why.plugin.yamland only tell the user something they need to know or act on.latest, and is named in the README with its source.