jedlik v1.0.10
jedlik
Description
Jedlik is a fluent syntax generator for Amazon's DynamoDB.
Why Jedlik?
Ányos Jedlik was a Hungarian inventor and engineer. His best known invention is the principle of dynamo self-excitation
Example
Jedlik uses a fluent interface to produce DynamobDB query syntax:
var Jedlik = require('jedlik'), jedlik = new Jedlik();
var query = jedlik
.tablename('table_name')
.hashkey('hash', 'hashvalue')
.rangekey('range', 'rangevalue', 'BEGINS_WITH')
.get(['attributes', 'attribute'])
.query;
Methods
tablename
The name of the table containing the requested items.
hashkey
Accepts a key, a value and an optional ComparisonOperator
which defaults to EQ
rangekey
Same as hashkey.
rangekeyBetween
Add rangekey BETWEEN condition
.rangekeyBetween([keyName], [fromValue], [toValue])
Use only with query
get
Accepts an array of attributes to get.
query
Returns the constructed JSON query.
put
Returns the constructed JSON putItem.
expected
Add Expected condition for UpdateItem(.update()
)
.expected([keyName], [expectedValue], [comparisonOperator])
Use only with update
2 years ago
3 years ago
3 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago