Feature idea: table editor?
df7cb opened this issue · 2 comments
Hi Pavel,
something that I have wanted for a long time is the ability to easily edit some fields in a table from psql. Ideally from the last query result, so select * from tbl where id = 5;
, and then being able to update some fields in there, without having to type a lengthy update tbl set foo = 'bar' where id = 5;
statement.
From the user interface, I think it would fit into pspg. I have no idea how to actually know which table/query result is being displayed, let alone how to figure out which SQL to send back from the pager. It would probably at least need the query passed in an environment variable or some similar interface, and from there figure out what tables are involved, and how to update them. Plus maybe a connection string for the current database.
Do you think that would be feasible? What infrastructure would be needed from psql? Possibly that could be useful for other applications as well.
Feel free to just close this issue if you don't think it makes any sense. I'm just filing it here to start investigating it.
Thanks.
Right, that's the current status. Maybe we can improve that in the future...
I'll close the issue, thanks. Possibly we can figure out how to do that eventually...