kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.54k stars 94 forks source link

Using dadbod-ssh with dadbod-ui not working #196

Closed patata3000 closed 1 year ago

patata3000 commented 1 year ago

Right now, I cannot use dadbod-ssh with ui because whenever I save an URL, the saved URL is resolved before saving. With ssh adapter, the url points to a localhost:7000 after resolving (or so). This is the URL that is saved in connection.json.

Then when I close nvim and try to reopen connection to the database, the local port (7000) is closed. dadbod-ui is trying to open it without opening ssh tunnel because url is not saved with the ssh:/ prefix (as it is resolved).

I probably missed something as they were probably there for a reason. In this case, please feel free to tell me what I'm missing for this to be accepted.

However, I don't understand why dadbod-ui has his own version of adapters. vim-dadbod let's you write some so why not adding adapters directly to vim-dadbod? Please enlighten me on the matter

Disclaimer : I've never written anything in vimscript