You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
432 B
23 lines
432 B
/*
|
|
* put-object-rows.js: Example usage for `cliff.putObjectRows`.
|
|
*
|
|
* (C) 2010, Charlie Robbins & the Contributors
|
|
*
|
|
*/
|
|
|
|
var cliff = require('../lib/cliff');
|
|
|
|
var objs = [], obj = {
|
|
name: "bazz",
|
|
address: "1234 Nowhere Dr.",
|
|
};
|
|
|
|
for (var i = 0; i < 10; i++) {
|
|
objs.push({
|
|
name: obj.name,
|
|
address: obj.address,
|
|
id: Math.random().toString()
|
|
});
|
|
}
|
|
|
|
cliff.putObjectRows('data', objs, ['id', 'name', 'address']); |