Tuesday, July 18, 2017

Re: dbext version 20 does not prompt for connection profile

On Monday, July 17, 2017 at 9:56:59 AM UTC-7, David Fishburn wrote:
> However, I wonder if I have simply been misinterpreting the functionality. One helpful site that led me to this plugin in the first place left me with the impression that the user is prompted for the desired DB connection from the list of connections detailed in the vimrc when you first call dbext in a new buffer. That does not happen. If I run a query, table select, or whatever from dbext, it automatically runs that command using the default DB connection. I can, however, use any DB connection listed in the vimrc if I run \sbp. Upon further reflection, this is probably the way it is intended to work, and I very much apologize for having troubled you if this was simply operator error.
>
>
>
>
>
> You can have that desired behaviour, just depends on how you have setup your defaults.
>
>
> If you put this in your .vimrc:
> :let g:dbext_default_profile='@askb'
>
>
> You are saying, "@askb" = "Ask first time per buffer"
>
>
> I suspect your g:dbext_default_profile is blank, empty or undefined.
>
>
> David

Hi David - Yes, that works beautifully. Thank you! Stevan

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment