Skip to content

Commit 4fa222b

Browse files
committed
sample docs
1 parent 959ed21 commit 4fa222b

File tree

1 file changed

+50
-2
lines changed

1 file changed

+50
-2
lines changed

CONFIG.md

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Configuring in Keboola Connection UI
22

3-
## Sample
3+
## Sample scan mode
44

55

66
```json
@@ -23,6 +23,7 @@
2323
"title",
2424
"year"
2525
],
26+
"mode": "scan",
2627
"dateFilter": {
2728
"field": "year",
2829
"format": "Y",
@@ -39,6 +40,49 @@
3940
}
4041
```
4142

43+
44+
## Sample query mode
45+
46+
47+
```json
48+
{
49+
"db": {
50+
"endpoint": "endpoint",
51+
"accessKeyId": "access key id",
52+
"#secretAccessKey": "secret access key",
53+
"regionName": "eu-central-1"
54+
},
55+
"exports": [
56+
{
57+
"id": 1,
58+
"name": "my-movies",
59+
"table": "Movies",
60+
"index": "Movies_SomeIndex",
61+
"enabled": true,
62+
"incremental": true,
63+
"primaryKey": [
64+
"title",
65+
"year"
66+
],
67+
"mode": "query",
68+
"keyConditionExpression": "#yr = :a",
69+
"expressionAttributeNames": {
70+
"#yr": "year"
71+
},
72+
"expressionAttributeValues": {
73+
":a": "2013"
74+
},
75+
"limit": 100,
76+
"mapping": {
77+
"title": "title",
78+
"year": "year",
79+
"info.rating": "rating"
80+
}
81+
}
82+
]
83+
}
84+
```
85+
4286
## Description of `parameters`
4387

4488
- `db`: DynamoDB instance connection options
@@ -55,7 +99,11 @@
5599
- `enabled` (optional, default: `true`): if export is enabled or not (there has to be at least one enabled export)
56100
- `incremental`: if load of tables to storage will be incremental
57101
- `primaryKey`: primary key to set on imported table, defined as array
58-
- `dateFilter` (optional): how to filter scanned documents
102+
- `mode`: (optional): enum(scan|query) reading mode from dynamoDb - defailt is scan
103+
- `keyConditionExpression`: (required): provide a specific value for the partition key
104+
- `expressionAttributeValues`: (required): values that can be substituted in an expression
105+
- `expressionAttributeNames`: (optional): substitution tokens for attribute names in an expression
106+
- `dateFilter` (optional): how to filter scanned documents (only for scan mode)
59107
- `field`: field name in document by which you want to filter
60108
- `format`: date format (e.g. `Y-m-d` for date or `Y` for year)
61109
- `value`: date string from which date value will be created (e.g. `-2 days`)

0 commit comments

Comments
 (0)