-
Notifications
You must be signed in to change notification settings - Fork 17
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
DynamoDB support (WIP) #71
Conversation
@@ -58,6 +64,9 @@ const create = () => { | |||
case 'airtable': | |||
internalConfigReader = new gcp.GcpAirtableConfigReader() | |||
break; | |||
case 'dynamo': | |||
internalConfigReader = new aws.AwsDynamoConfigReader(region) | |||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gcp doesn't have dynamo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not in gcp, it's in azure for the e2e test.
process.env.CLOUD_VENDOR = 'azr'
(all e2e tests are on azure)
internalConfigReader = new aws.AwsDynamoConfigReader(region) | ||
break | ||
default: | ||
internalConfigReader = new aws.AwsConfigReader(secretId || DefaultSecretId, region) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's rename the AwsConfigReader to something else
|
||
async find(collectionName, filter, sort, skip, limit) { | ||
const {filterExpr} = this.filterParser.transform(filter) | ||
const response = await this.docClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's better to write
const { Items } = ....
async count(collectionName, filter) { | ||
const {filterExpr} = this.filterParser.transform(filter) | ||
const response = await this.docClient | ||
.scan({TableName: collectionName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's discuss the difference between scan and query
No description provided.