From 44ee946847fac9396971056cfde4a7c821ea38a5 Mon Sep 17 00:00:00 2001 From: djeeno <29125616+djeeno@users.noreply.github.com> Date: Tue, 1 Dec 2020 16:31:39 +0900 Subject: [PATCH] Update README.md (#23) --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38a22b9..2750086 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,24 @@ # bqtableschema + BigQuery table schema struct generator [![main](https://github.com/djeeno/bqtableschema/workflows/main/badge.svg)](https://github.com/djeeno/bqtableschema/tree/main) [![codecov](https://codecov.io/gh/djeeno/bqtableschema/branch/main/graph/badge.svg)](https://codecov.io/gh/djeeno/bqtableschema) ## generate + ```console -$ cd /path/to/your/repository +$ cd /path/to/your/golang-project-repository -$ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/serviceaccount/keyfile.json +$ ## Create a directory where bqtableschema will generate the code. +$ mkdir -p bqtableschema +$ cd bqtableschema +$ ## Set the required environment variables. +$ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/serviceaccount/keyfile.json $ export GCLOUD_PROJECT_ID=bigquery-public-data ## ref. https://console.cloud.google.com/bigquery?p=bigquery-public-data&page=project $ export BIGQUERY_DATASET=hacker_news ## ref. https://console.cloud.google.com/bigquery?p=bigquery-public-data&d=hacker_news&page=dataset +$ ## generate $ go run github.com/djeeno/bqtableschema ```