kristijanhusak / vim-dadbod-ui

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

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

Open thyseus opened 6 months ago

thyseus commented 6 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 6 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 6 months ago

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