Skip to content
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

Include statement convert options to set statements to configure byzer script #1628

Open
allwefantasy opened this issue Dec 19, 2021 · 0 comments

Comments

@allwefantasy
Copy link
Contributor

Suppose we have code like following:

include lib.`github.com/allwefantasy/lib-saas-api` where 
libMirror="gitee.com" and -- if you'r in china, set proxy
alias="apis";

set userId="xxxxx";
set access_token="xxxxx";
include local.`apis.dataset.doc__v2__docs`;

The variables userId, access_token will affect the behavior of the byzer script included.

However, This way is not convenient. We can put the variables in the where/options part of include statement.

Like this:

include local.`apis.dataset.doc__v2__docs` where 
userId="xxxxx"
and access_token="xxxxx";

We also can support a parameter __action__ to control how to generate the set statements:

include local.`apis.dataset.doc__v2__docs` where 
userId="xxxxx"
and access_token="xxxxx"
and __action__="set"
;

This means we will generate normal type of set statements.

@allwefantasy allwefantasy changed the title Include statement convert options to set statement to configure byzer script Include statement convert options to set statements to configure byzer script Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant