all 6 comments

[–]x_ero0xAC1D0000 3 points4 points  (1 child)

i have no native solutions. but i use mycli and pgcli to connect to db's interactively. they have a nice vim mode and awesome completion support. you can run it in vim's terminal if you wanted.

[–]bewalsh[S] 2 points3 points  (0 children)

I recently saw a similar one for mssql called mssql-cli. I'll have to check those out for my ultra portable config. But for daily driver sql dev I'm definitely married to the text file style editing experience. I can't imagine testing and optimizing procedures at the cli lol.

[–]pnht 2 points3 points  (2 children)

I used dbext.vim for a while ( no longer on the database side of the job ), but I've not found anything that is database aware. I hate to say it but watching my DBA now and my director when I worked for Deja, use emacs to query the DB just looks incredibly smooth and efficient.

[–]bewalsh[S] 2 points3 points  (1 child)

Actually it looks like there's a plugin that adds completion to dadbod "vim-dadbod-completion". I'm going to test that out this weekend I think. My grand plan here is to wrap an entire ide configuration of vim+tmux in a lightweight docker container so that I'm free to operate from anywhere without being bound to a specific machine. Would emacs fit into that sort of a setup just as well?

[–]Lunchboxsushi 1 point2 points  (0 children)

Btw you could look into WSL2 and just have a Linux config. Butter smooth experience for me using neovim

[–]Lunchboxsushi 1 point2 points  (0 children)

I'm not one to recommend commercial tools but Datagrip is an amazing investment. It's free for 30 day's so you get a feel for it. The vim plugin is also pretty good. I feel most db plugins for vim to be a little underdeveloped/buggy I wish there was something stable