-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple tables in BatchWrite and BatchGet (#226)
* batch write: support writing to multiple tables in a single batch * batch get: support reading from multiple tables * add Merge to batches * fix flake in TestScanPaging * add github actions ci & auto-create test table * use unique table name in ci * add multi-table batch tests
- Loading branch information
Showing
16 changed files
with
442 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3' | ||
|
||
services: | ||
dynamodb: | ||
image: amazon/dynamodb-local:latest | ||
ports: | ||
- "8880:8000" | ||
command: "-jar DynamoDBLocal.jar -sharedDb -inMemory" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 'stable' | ||
- name: Start DynamoDB Local | ||
run: docker compose -f '.github/docker-compose.yml' up -d | ||
- name: Test | ||
run: go test -v -race -cover -coverpkg=./... ./... | ||
env: | ||
DYNAMO_TEST_ENDPOINT: 'http://localhost:8880' | ||
DYNAMO_TEST_REGION: local | ||
DYNAMO_TEST_TABLE: 'TestDB-%' | ||
AWS_ACCESS_KEY_ID: dummy | ||
AWS_SECRET_ACCESS_KEY: dummy | ||
AWS_REGION: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.