jed/dynamo — pull request #34 by mlogan (2012-09-26 22:24:36+00:00)
Title: Support array-based schema specification. 

(See https://github.com/jed/dynamo/issues/9).

Instead of relying on order-of-insertion traversal of object properties, an
unspecified behavior of javascript, users may specify hash and range keys in an
array of arrays, where the sub-arrays contain the attribute name and attribute
type as the first and second elements, respectively.

So, instead of calling

db.add({
name: "myTable",
schema: {id: String, date: Number},
}).save(function(err, table){ ... })

you would call:

db.add({
name: "myTable",
schema: [ ['id', String], ['date', Number] ],
}).save(function(err, table){ ... })