Repository navigation
feat(chen): add and duplicate rows in results that carry the whole table - #2010
Open
adriadam10 wants to merge 2 commits into
Open
adriadam10 wants to merge 2 commits into
adriadam10 wants to merge 2 commits into
Conversation
Delete row was only shown when the table was opened from the tree. A query result whose source is proven to be one table with a primary key can already update rows by that key, and chen now accepts deleting them too. Show Delete row in the toolbar and in the row context menu for those results; adding rows still needs a table browse result.
Add row was shown only for a table opened from the tree. Show it whenever chen marks columns insertable, which now includes SELECT * results of one table, and add Duplicate row (toolbar and row menu): it stages the selected rows as new ones with every insertable value, leaving generated columns such as an auto-increment key to the database.
|
Member
|
Nice addition! Besides waiting on the server-side changes in
|
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.



Builds on #2009 (its first commit is that PR). Server side: jumpserver/chen#369.
Add row was only shown for a table opened from the tree. Copying an existing row into a new one (as other database clients allow) had no direct way either: pasting a copied row also carries its primary key, and the save fails.
SELECT *results of one table.DuplicateRowadded to every locale; vitest forstageDuplicateRows.