[FR] Automatically parse database URL when pasting
When I paste my DB URL like postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public I'd like it to be parsed and autofill the login form:
Example packages that do this:
- https://www.npmjs.com/package/ts-parse-database-url
- https://www.npmjs.com/package/parse-db-uri
Hello! Great suggestion!
We already do this for mongodb and definitely worth adding to Postgres. Adding this to our backlog. Thank you :)
hey @hkdeman I would like to work on this issue
Hey @vr-varad! That is great to hear. Pull up a PR and we are happy to check it out!
Hi @hkdeman ,
I’ve addressed the issue and submitted a PR. As per your suggestion, I checked the mentioned two libraries for parsing fields from the URL, but I found that the existing logic was sufficient and didn’t require any additional dependencies.
Please review the changes and let me know if there’s anything else that needed. I’m happy to contribute more!
Thank you for the contribution! @modelorona has left a quick comment on it. Let us know your thoughts :)