sosedoff / pgweb

Cross-platform client for PostgreSQL databases
https://sosedoff.github.io/pgweb
MIT License
8.66k stars 742 forks source link

Feature Request: Inline editing of records #759

Closed 54keesh closed 1 month ago

54keesh commented 1 month ago

Hats off to the creator, its a great tool, tho one feature might be a plus.

While double clicking a row currently opens up a modal with column value inside of it, it should be editable and when the modal is closed or a save button is pressed, the editted column value gets updated in the record.

This way one doesnt have to manually go to the query tab and write an explicity update query.

sosedoff commented 1 month ago

Yea the inline record editing feature has been requested on numerous occasions, but i don't think i have any bandwidth to implement it in the current scope of pgweb project.

54keesh commented 1 month ago

@sosedoff Do you accept PRs? If so I would like to raise a PR for this feature. Could you then please reopen this issue?

54keesh commented 1 month ago

@sosedoff PRs not possible ?

sosedoff commented 1 month ago

That would heavily depend on the overall execution.

54keesh commented 4 weeks ago

@sosedoff I would actually be creating update queries based upon the input and sending that query in the same way as currently query tab sends query in payload. Upon successful response from API I'll be replacing that inline column with the updated one otherwise the respective error from the Backend however it's correctly working. Would this be fine?