vim-dadbod icon indicating copy to clipboard operation
vim-dadbod copied to clipboard

Unable to start interactive session

Open twiclo opened this issue 1 year ago • 2 comments

From the readme:

Omit further arguments to spawn an interactive console (like psql or redis-cli).

:DB postgresql:///foobar :DB redis:

I can successfully run :DB postgresql://twiclo@localhost/sc select * from service; But running :DB postgresql://twiclo@localhost/sc Does seemingly nothing. My cursor will flash once so something is happening but I don't see any new buffer or interactive session. Am I missing something?

twiclo avatar Feb 28 '24 17:02 twiclo

I'm having the same issue, checked previous issues, ran

:echo db#adapter#dispatch("postgresql://postgres@localhost/db", "interactive")

and I got

['psql', '-w', '--dbname', 'postgresql://postgres@localhost/db']

ran that command on the terminal and it worked, but when running :DB with only the URL, cursor blinks and nothing happens, but if a query is also supplied, it works with no issue.

tomasmiguez avatar Mar 06 '24 13:03 tomasmiguez

For anyone experiencing this issue, I had to install tpope/vim-dispatch to get this working. I thought it was optional though:

:DB [url]               Start an interactive database console.  Uses
                        dispatch.vim's |:Start| if available.

rodrigoscc avatar Apr 02 '24 15:04 rodrigoscc