From 275f5e3f61d4fa2c5247e0b2d62e13eaa3312b38 Mon Sep 17 00:00:00 2001 From: Saurav Ghosh Date: Mon, 18 Jan 2021 18:54:07 +0530 Subject: [PATCH] updated config to contain description --- config-files/staging/config-staging.json | 4 +-- config-files/staging/spanner-staging.json | 7 ++--- config-files/staging/tables-staging.json | 34 ++++++++++------------- 3 files changed, 20 insertions(+), 25 deletions(-) diff --git a/config-files/staging/config-staging.json b/config-files/staging/config-staging.json index 0c4a1fd..1ca5ab9 100644 --- a/config-files/staging/config-staging.json +++ b/config-files/staging/config-staging.json @@ -1,5 +1,5 @@ { - "GoogleProjectID": "cc-dev-sandbox-20200619", - "SpannerDb": "test-db", + "GoogleProjectID": "Your Google Project ID", + "SpannerDb": "Your Spanner Database Name", "QueryLimit": 5000 } \ No newline at end of file diff --git a/config-files/staging/spanner-staging.json b/config-files/staging/spanner-staging.json index 7700f78..397cc31 100644 --- a/config-files/staging/spanner-staging.json +++ b/config-files/staging/spanner-staging.json @@ -1,6 +1,5 @@ { - "dynamodb_adapter_table_ddl": "test-instance", - "dynamodb_adapter_config_manager": "test-instance", - "department": "test-instance", - "employee": "test-instance" + "dynamodb_adapter_table_ddl": "instance-ID of dynamodb_adapter_table_ddl table", + "dynamodb_adapter_config_manager": "instance-ID of dynamodb_adapter_config_manager table", + "tableName": "instance-ID of Table" } \ No newline at end of file diff --git a/config-files/staging/tables-staging.json b/config-files/staging/tables-staging.json index f5edcc5..99d015f 100644 --- a/config-files/staging/tables-staging.json +++ b/config-files/staging/tables-staging.json @@ -1,24 +1,20 @@ { - "employee":{ - "partitionKey":"emp_id", - "sortKey": "", + "tableName":{ + "partitionKey":"primary key or Partition key", + "sortKey": "sorting key of dynamoDB adapter", "attributeTypes": { - "emp_id": "N", - "first_name":"S", - "last_name":"S", - "address":"S", - "age":"N" + "ColInt64": "N", + "ColString": "S", + "ColBytes": "B", + "ColBool": "BOOL", + "ColDate": "S", + "ColTimestamp": "S" }, - "indices": {} - }, - "department":{ - "partitionKey":"d_id", - "sortKey": "", - "attributeTypes": { - "d_id": "N", - "d_name":"S", - "d_specialization":"S" - }, - "indices": {} + "indices": { + "indexName1": { + "sortKey": "sort key for indexName1", + "partitionKey": "partition key for indexName1" + } + } } } \ No newline at end of file