1.3.4 • Published 4 years ago

getto-aws_dynamodb v1.3.4

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

node-getto-aws_dynamodb

aws_dynamodb : getto-psycher vendor plugin

status: production ready

const aws_dynamodb = require("getto-aws_dynamodb").init({
  region: "REGION",
});

const put = async () => {
  const documentClient = aws_dynamodb.documentClient();
  await documentClient.put({
    TableName: "table",
    Item: {
      id: "ID",
      value: "VALUE",
    },
    ConditionExpression: "attribute_not_exists(id)",
  });
};
Table of Contents

Requirements

  • Node.js: 10.16.0

Usage

const aws_dynamodb = require("getto-aws_dynamodb").init({
  region: "REGION",
});

const put = async () => {
  const documentClient = aws_dynamodb.documentClient();
  await documentClient.put({
    TableName: "table",
    Item: {
      id: "ID",
      value: "VALUE",
    },
    ConditionExpression: "attribute_not_exists(id)",
  });
};

methods

  • put
  • get
  • query

same api as dynamodb document client

Install

npm install --save getto-aws_dynamodb

License

node-getto-aws_dynamodb is licensed under the MIT license.

Copyright © since 2019 shun@getto.systems

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

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.0

5 years ago

0.0.1

5 years ago