Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vogels 2.0 - JSON document support. Closes #50
New Features * Full JSON document support, including support for List, Map, and BOOL datatypes. Closes #16, #44 * New timestamps config option to automatically add the attributes createdAt and updatedAt when defining a model. These attributes will get automatically get set when you create and update a record. * Flexible schema configuration to allow unknown, dynamic attributes both on top level and nested records * Ability to fully configure global and local secondary indexes. Allows to configure index names, attribute projection settings and index throughput. Closes #43 , #48 * adding deleteTable api to remove the table from DynamoDB. Closes #10 * 100% code coverage with new integration test suite and integration with travis-ci. Bug Fixes * CreateTables checks if error occurs while attempting to create a table. Fixes #41 * Fixed error handling when streaming query, scan and parallel scan requests. * Fixed retry handling when running query and scans. Fixes #45 Updated dependencies * Joi to v5.1.0 * aws-sdk to v2.1.5 - Closes #49 * async to v0.9.0 * lodash to v2.4.1
- Loading branch information
Showing
54 changed files
with
6,006 additions
and
2,199 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 |
---|---|---|
|
@@ -5,3 +5,5 @@ Debug/ | |
Release/ | ||
npm-debug.log | ||
tmp | ||
covreporter/ | ||
coverage/ |
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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
env: | ||
global: | ||
- AWS_ACCESS_KEY_ID=AKID | ||
- AWS_SECRET_ACCESS_KEY=SECRET | ||
- AWS_REGION=us-east-1 | ||
before_script: | ||
- wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz -O /tmp/dynamodb_local_latest.tar.gz | ||
- tar -xzf /tmp/dynamodb_local_latest.tar.gz -C /tmp | ||
- java -Djava.library.path=/tmp/DynamoDBLocal_lib -jar /tmp/DynamoDBLocal.jar -inMemory & | ||
- sleep 2 | ||
addons: | ||
hosts: | ||
- dynamodb-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM google/nodejs | ||
|
||
WORKDIR /app | ||
ADD package.json /app/ | ||
RUN npm install | ||
ADD . /app | ||
|
||
# CMD [] | ||
# ENTRYPOINT ["/nodejs/bin/npm", "test"] |
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
REPORTER ?= list | ||
SRC = $(shell find lib -name "*.js" -type f | sort) | ||
TESTSRC = $(shell find test -name "*.js" -type f | sort) | ||
|
||
default: test | ||
|
||
lint: $(SRC) $(TESTSRC) | ||
@node_modules/.bin/jshint --reporter node_modules/jshint-stylish/stylish.js $^ | ||
|
||
test-unit: lint | ||
@node node_modules/.bin/mocha \ | ||
--reporter $(REPORTER) \ | ||
--ui bdd \ | ||
test/*-test.js | ||
|
||
test-integration: lint | ||
@node node_modules/.bin/mocha \ | ||
--reporter spec \ | ||
--ui bdd \ | ||
test/integration/*-test.js | ||
|
||
test-cov: lint | ||
@node node_modules/.bin/mocha \ | ||
-r jscoverage \ | ||
$(TESTSRC) | ||
|
||
test-cov-html: lint | ||
@node node_modules/.bin/mocha \ | ||
-r jscoverage \ | ||
--covout=html \ | ||
$(TESTSRC) | ||
|
||
coverage: lint | ||
@node_modules/.bin/istanbul cover node_modules/mocha/bin/_mocha $(TESTSRC) | ||
@node_modules/.bin/istanbul check-coverage --statements 100 --functions 100 --branches 100 --lines 100 | ||
|
||
test: test-unit test-integration | ||
|
||
.PHONY: test test-cov test-cov-html |
Oops, something went wrong.