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
Add interpolated variables #744
Comments
@mcamou FYI this is already implemented with |
* [#744] Support for Interpolated Variables * Update extension.ts * Apply suggestions from code review Co-authored-by: John Murray <johnm@georgejames.com> Co-authored-by: John Murray <johnm@georgejames.com>
PR #1064 from @lucasvieirasilva has implemented this. It is in today's 0.27.0 release. |
Hi! Just came accross this issue, and regarding what @mcamou said:
Is that actually implemented but not documented? Or are the interpolated variables only to be used from the connection settings? |
@diego-vicente AFAIK you can currently only pre-define variable values in the connection definition, not in comments above the query. |
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
It would be great to have the possibility of having interpolated values in the query editor, which you could somehow assign (via a pull-down? That would be awesome). In my case, we have a DB with similarly-named tables which differ in the prefix, and I sometimes do queries like such as this (this is a very simplified version):
It would be really great to be able to do something like:
and if
#prefix#
is not defined in the file, you could pop up a dialog (or, if you want to be really fancy, you could somehow define it as a list, and the dialog could put up a pull-down list)This would be just text interpolation, nothing smart like adding quotes where needed.
Describe alternatives you've considered
What I usually do is select the whole set of queries and search/replace.
Additional context
The text was updated successfully, but these errors were encountered: