4 ms·
having a consistent interface between local and terminal is ideal. being able to highlight any text in any buffer and say 'send this to DB and place results in
by pweissbrod 9y ago
having a consistent interface between local and terminal is ideal. being able to highlight any text in any buffer and say 'send this to DB and place results in new pane' is extremely usable. You dont see this sort of power in things like intellij or visual studio because it normally requires you to open an entirely different program for sql.
- platz 9y agoHaving a single active connection is an assumption those tools tend not to make
- pweissbrod 9y agoHave you ever used dbext? I dont understand your comment because it can handle multiple connections. Connections are referred to as named profiles. If you want to work with one connection at a time for safety sake you can use :DBSetOption profile=X But dbext is vimscript which is very hackable like anything else in vim. If you want to use multiple connections theres nothing stopping you from writing something like nmap <leader>se1 to run the selection with connection profile #1 nmap <leader>se2 to run the selection with connection profile #2 and so forth