feature: generate sql from a result row #100
Labels
No labels
CI/CD
UI/UX
autorelease: pending
bug
docs
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
size
L
size
M
size
S
size
XL
size
XS
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/dadbod-ui.nvim#100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Did you check the docs?
Is your feature request related to a problem? Please describe.
I see a row in a result and i want to update it. Right now i write the whole UPDATE by hand, including the where clause, off what i can see on screen.
Describe the solution you'd like
Cursor on a result row, generate the UPDATE into a query buffer, edit it, run it.
This is the honest version of editable result grids. You get review-before-execute for free, which i actually want on an update, and theres no grid model or dirty state to keep track of.
Bottom of the list, dont start this before the rest of the roadmap.
Acceptance Criteria
Describe alternatives/other solutions you've considered
Editable result grids, like DBeaver. Already decided against. The hard part isnt the sql, its working out which columns identify the row, handling a join that touches several tables, and cascade deletes. Big machinery for something we can mostly get by generating text and letting you read it.
Doing nothing and writing them by hand. Fine for one row, annoying for anything past that.
Only generating the SELECT, which is easier since it needs no key. Half the value, the update is the bit thats annoying to type.