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

環境変数でSpanner DBを設定する機能 #7

Open
sinmetal opened this issue Mar 6, 2019 · 0 comments
Open

環境変数でSpanner DBを設定する機能 #7

sinmetal opened this issue Mar 6, 2019 · 0 comments
Assignees

Comments

@sinmetal
Copy link
Member

sinmetal commented Mar 6, 2019

WHAT

Spannerに関する設定値を、flagではなく環境変数から受け取る機能
flagがある場合は、flagで上書きする感じにする

export SPANNER_PROJECT_ID=${YOUR_SPANNER_PROJECT}
export SPANNER_INSTANCE_ID=${YOUR_SPANNER_INSTANCE}
export SPANNER_DATABASE_ID=${YOUR_SPANNER_DATABASE}

WHY

複数回同じDBのQueryを実行する時に、毎回 flagで指定するのはめんどうなので

@sinmetal sinmetal self-assigned this Mar 6, 2019
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