-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Using the environment variable in the connection string for the database in the genbil #682
Comments
There is no support of environment variables within genbiL. This should be implemented as a new feature. |
Hi! Thank you for your answer. It seems that this feature would be extremely useful and helpful. Could you please tell me if you implement it soon ? Should I create a new pull request about it ? I would appreciate it if you could tell me about it. Best regards, |
To be honest, I’m not working on Nbi at this moment. I’ve other urgent priorities.
Nevertheless, it’s not really complex to implement. Will try to find one hour to implement it this week.
If you want to work on it, feel free. I do believe that the right syntax woulld be something like env$:my Var without the quotes. Before pushing any code would be better to check that we are aligned on syntax.
… On 8 Jun 2022, at 08:56, Lukasz ***@***.***> wrote:
Hi! Thank you for your answer.
It seems that this feature would be extremely useful and helpful.
Could you please tell me if you implement it soon ?
Should I create a new pull request about it ?
I would appreciate it if you could tell me about it.
Best regards,
Lukasz
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Hi, I will try to handle this problem once again and inform you about it provided that it works. If you find this solution earlier, I will be thankful if you share it with me. Therefore, we keep in touch! Best regards, |
I hope that this version is adding the feature. To reference an environment variable use the following syntax
where Could you confirm that it's matching with your need? If yes, I'll merge and create a beta. |
Hi!, Thank you for your contribution to it. I downloaded Framework.zip and UI.zip files in order to run my genbiL. However, if I open the normal genbiL files without this syntax, it will work. I tried to open these nupkg files by Visual Studio , but it did not work as well.. Therefore, could you please try to fix it and inform me about it ? Then, I will test it. If I run it wrongly, can you advise me how to open it properly to run my genbiL with your syntax ? I would appreciate it if you could fix it. Best Regards, |
Could you share your file? |
Hi, If so, these codes are included there:
If no, could you please tell me which ones you need ? |
I published a new version that should be working: https://ci.appveyor.com/project/Seddryck/nbi/builds/43833902/artifacts |
Hi, It seems that I should download Framework.zip and UI.zip. Is it correct ? I would appreciate it if you could advise me which ones are necessary to test it. Thanks in advance ! |
I'd say that UI.zip should be enough, changes are limited to genbiL. |
Hi!, I put this code, which I sent you, to a genbiL file and when I run my macro I received this information: I checked my environment variables in Windows and all of them has connection strings. Could you please tell me how you modify your genbiL file that works properly ? I am not aware where I made a mistake. Best Regards, |
Hi!, I needed to change locally my environment variables in Windows with respect to this structure: 'Data source:...' I would like to inquire about this modification. Thank you for your contribution and aid in this modification! Best Regards, |
Yes, it will be integrated into the next release. After some additional review, I'll write down some documentation and push to the develop branch. That will generate a new beta. There is no difference between a beta and a release except the naming. I don't know when I'll publish a release. |
Hi,
I usually load a set of my test cases from my database like:
case load query 'Relative Directory\myQuery.sql' on 'Data Source=...';
However, I was wondering if it is possible to place the environment variable in the connection string for the database instead of 'Data Source=...';
For example:
case load query 'Relative Directory\myQuery.sql' on 'environment name ="Database"';
Unfortunately, this example does not work. Obviously, I took a few tests, where I changed this syntax, but none of my ideas works..
Could you please tell me if it is possible to implement the environment variable in this connection string for the database?
If so, would you be so kind as to advise me how to deal with it?
I would appreciate it if you could share any ideas with me.
Thanks in advance!
The text was updated successfully, but these errors were encountered: