-
Notifications
You must be signed in to change notification settings - Fork 77
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
Hooks support #202
Comments
Being able to run some arbitrary command like https://stackoverflow.com/a/1968446/4265939 before connecting would be really useful. |
I recently added an ability to run a function for a connection. You should be able to do anything in the function and just return the connection string. You can see the example here https://github.com/kristijanhusak/vim-dadbod-ui#via-gdbs-global-variable |
Hmm.. |
@neilsimp1 how would you suggest it works from the connection? Assuming that i have to store it as a string, what would you put inside of it? |
I see your point, it would not work well as part of a Connection String. It would have to some other property stored alongside the connection string. Some other property that could hold arbitrary commands to execute. For background, I am transitioning from MySql Workbench to this. Workbench allowed storing Connection profiles as a DB connection over an SSH tunnel. |
I was wondering if we could add support for custom callbacks that could run on certain events, hooks style. My desire is to load up the connection string from my password manager and create a tunnel when I try to connect to the db. What do you think?
The text was updated successfully, but these errors were encountered: