A set of command line database tools (github.com)
from yznts@programming.dev to golang@programming.dev on 09 Aug 2024 13:59
https://programming.dev/post/17916447

On my work I’m always switching between databases and kind of tired on UX differences between psql, mysql, sqlite3. So, I’m making a small set of tools for myself in tries to solve that. It’s kinda works for me already and I’d like to share it here :)

#golang

threaded - newest

z3rOR0ne@lemmy.ml on 09 Aug 2024 16:42 next collapse

Looks cool. Will try out later. Thanks for posting! 👍

z3rOR0ne@lemmy.ml on 09 Aug 2024 21:51 collapse

Perhaps you could elaborate your README with some examples of use? Also I can’t seem to install using the go command you documented. I did compile after cloning, but I’m afraid I don’t know the format the env vars are expecting, hence some examples would be helpful. Just adding some examples of setting the env variables would be nice.

yznts@programming.dev on 11 Aug 2024 12:03 collapse

Thank you for a feedback!
README updated with a fixed install, I missed @latest in the end.

I’ll work on a better README: github.com/yznts/dsh/issues/6.
I’m not that good at this kind of thing :)

For now, only url-like DSNs are supported, like:

  • postgres://user:pass@host:port/db?options
  • sqlite://file.db