Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start interactive session #160

Open
twiclo opened this issue Feb 28, 2024 · 2 comments
Open

Unable to start interactive session #160

twiclo opened this issue Feb 28, 2024 · 2 comments

Comments

@twiclo
Copy link

twiclo commented Feb 28, 2024

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?

@tomasmiguez
Copy link

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.

@rstcruzo
Copy link

rstcruzo commented Apr 2, 2024

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.

stefanvanburen added a commit to stefanvanburen/dotfiles that referenced this issue Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants