kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.48k stars 86 forks source link

Feature Request: Change result buffer, save, propagate changes to db #233

Open thyseus opened 4 months ago

thyseus commented 4 months ago

I did not find this (kick-ass!) Feature Request anywhere else neither i do have enough vim programming skills so i just want to write down that idea here:

When i do a query select id, name from users and get a results like

|id | name |
| 1 |  Herbert |

i want to EDIT the result buffer, save it, and let DADBOT propagate the changes via update users set name = <> where id = <>.

This would require a primary key and i think this hard to implement.

anyone up for a challenge ? :) Thanks a lot !

thyseus commented 4 months ago

Of course, removing a line will create a delete query; insert a line a insert into query... how awesome would that be ?

wstewarttennes commented 4 months ago

+1 here although I'm sure this is a complicated build out