3.45.1 • Published 1 year ago

@cpmech/az-dynamo v3.45.1

Weekly downloads
165
License
MIT
Repository
github
Last release
1 year ago

AmaZon AWS DynamoDB Tools

Tools for implementing DynamoDB.

Installation

npm install @cpmech/az-dynamo

Example

import AWS from 'aws-sdk';
import { create, get, update, increment, removeAttributes, removeItem } from '@cpmech/az-dynamo';

AWS.config.update({
  region: 'us-east-1',
  dynamodb: {
    endpoint: 'http://localhost:8000',
  },
});

const table = 'TEST_USERS';

const key = { email: 'tester@domain.com' };
const data = { hello: 'world', hits: 0 };

await create(table, key, data);
const res1 = await get(table, key);
console.log(res1);

await update(table, key, { hello: 'mundo' });
const res2 = await get(table, key);
console.log(res2);

await increment(table, key, 'hits');
const res3 = await get(table, key);
console.log(res3);

await removeAttributes(table, key, ['hits']);
const res4 = await get(table, key);
console.log(res4);

await removeItem(table, key);

News

Amazon DynamoDB now supports empty values for non-key String and Binary attributes in DynamoDB tables: https://aws.amazon.com/about-aws/whats-new/2020/05/amazon-dynamodb-now-supports-empty-values-for-non-key-string-and-binary-attributes-in-dynamodb-tables/

3.45.1

1 year ago

3.43.0

3 years ago

3.42.0

3 years ago

3.41.0

3 years ago

3.40.0

3 years ago

3.40.1

3 years ago

3.39.0

3 years ago

3.38.0

4 years ago

3.37.0

4 years ago

3.36.0

4 years ago

3.35.0

4 years ago

3.34.0

4 years ago

3.33.0

4 years ago

3.32.1

4 years ago

3.32.0

4 years ago

3.31.0

4 years ago

3.30.1

5 years ago

3.30.0

5 years ago

3.29.1

5 years ago

3.29.0

5 years ago

3.28.0

5 years ago

3.27.0

5 years ago

3.26.0

5 years ago

3.24.0

5 years ago

3.25.0

5 years ago

3.23.0

5 years ago

3.22.0

5 years ago

3.21.0

5 years ago

3.20.0

5 years ago

3.19.0

5 years ago

3.18.0

5 years ago

3.17.0

5 years ago

3.16.0

5 years ago

3.15.0

5 years ago

3.14.0

5 years ago

3.13.0

5 years ago

3.12.0

5 years ago

3.11.0

5 years ago

3.10.0

5 years ago

3.9.0

5 years ago

3.8.0

5 years ago

3.7.0

5 years ago

3.6.0

5 years ago

3.5.0

5 years ago

3.4.0

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.29.0

5 years ago

2.28.0

5 years ago

2.27.0

5 years ago

2.26.1

5 years ago

2.26.0

5 years ago

2.24.0

5 years ago

2.23.0

5 years ago

2.22.0

5 years ago

2.21.0

5 years ago

2.20.0

5 years ago

2.18.0

5 years ago

2.17.0

5 years ago

2.16.0

5 years ago

2.15.0

5 years ago

2.13.0

5 years ago

2.14.0

5 years ago

2.12.0

5 years ago

2.12.1

5 years ago

2.11.0

5 years ago

2.10.0

5 years ago

2.9.0

5 years ago

2.8.0

5 years ago

2.7.0

5 years ago

2.6.0

5 years ago

2.5.0

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.23.0

5 years ago

1.22.0

5 years ago

1.19.0

5 years ago

1.18.0

5 years ago

1.17.0

5 years ago

1.16.0

5 years ago

1.15.0

5 years ago

1.14.0

5 years ago

1.13.0

5 years ago

1.11.0

5 years ago

1.10.1

5 years ago

1.10.0

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago