Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature idea: table editor? #200

Closed
df7cb opened this issue Mar 7, 2022 · 2 comments
Closed

Feature idea: table editor? #200

df7cb opened this issue Mar 7, 2022 · 2 comments

Comments

@df7cb
Copy link
Contributor

df7cb commented Mar 7, 2022

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.

@okbob
Copy link
Owner

okbob commented Mar 7, 2022 via email

@df7cb
Copy link
Contributor Author

df7cb commented Mar 7, 2022

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...

@df7cb df7cb closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants