Conversation
Only tested uv tool deps with postgres, can also be installed just fine with extras, e.g. `uv tool install sqlit-tui[ssh,postgres]`... In most cases it's probably preferred to use the extra, but can still be useful to install independently with `-w`, for example, if you want to build against system postgres libs (e.g. using `psycopg2` in place of `psycopg2-binary` for a command like `uv tool install sqlit-tui[ssh] -w psycopg2`). Not sure if setting SQLIT_CONFIG env will fully prevent `~/.sqlit` dir from cluttering up homedir, but seems to work well enough in my case. Should probably be codified as a default option for linux though.. I've never met anyone who wanted config dirs cluttering up their home dir. :)
Looked fine until I opened it up in web UI. :)
|
Thanks for this PR! It helped me figure out that |
No problem! I had the same issue and had to dig a bit, so I figured even if the PR isn't accepted, it might be useful for others. :) Realistically I think the best option is just to go for xdg compatible basedirs by default, which would make this PR unnecessary anyways. I figured a documentation PR was maybe nicer than just showing up and feature requesting it out of nowhere, haha. |
Some basic instructions to use standard xdg-compatible config dirs, and a couple
uv tool installoptions. Realistically, I think it'd probably be good to just go for using~/.config/sqlitby default for linux anyways, even if not worrying too much about following the xdg spec to the letter. Some people get irrationally annoyed when projects dump stuff in their homedir (not me of course 😉) and it's always better to be ahead of it becomes a load-bearing barnacle, so to speak.Arch wiki even has a hall of shame, haha:
https://wiki.archlinux.org/title/XDG_Base_Directory
BTW, awesome project. I've been using the
dbclitools for years (litecli,pgcli, etc.) and this is probably gonna supplant that pretty quickly. Will be nice to fight less with the pager for sure...I think I may even be the first person to have pulled your new neovim plugin too, lol.In any case, feel free to use or not use this however you want! I just figured having this mentioned in the docs might save others from having to dig to get sqlit to stop dropping config in their home dir, and maybe also nudge you toward changing the defaults a bit. Thanks!!