sequelize-cps
Advanced tools
Comparing version
{ | ||
"name": "sequelize-cps", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Add CPS, error-first callbacks to sequelize", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
#sequelize-cps | ||
Adds CPS functionality to sequelize via [customulize](https://www.npmjs.org/package/customulize) for cases when __.complete, .success, .save__ | ||
just aren't for you. | ||
Adds [CPS](http://en.wikipedia.org/wiki/Continuation-passing_style) functionality | ||
([Error First](http://fredkschott.com/post/2014/03/understanding-error-first-callbacks-in-node-js/)) | ||
to sequelize via [customulize](https://www.npmjs.org/package/customulize) for cases when __.complete, .success, .save__ just aren't for you. | ||
* [CPS](http://en.wikipedia.org/wiki/Continuation-passing_style) | ||
* [Error First](http://fredkschott.com/post/2014/03/understanding-error-first-callbacks-in-node-js/) | ||
##Installation | ||
@@ -38,13 +34,2 @@ | ||
##kgo | ||
When using [kgo](https://www.npmjs.org/package/kgo) this is especially convenient. | ||
kgo | ||
('account', Account.cps.find.bind(null, {where: {id: 1}})) | ||
('update', ['account'], function(account, done) { | ||
account.name = 'John'; | ||
account.cps.save(done); | ||
}) | ||
// etc, etc, etc | ||
Pull requests welcome with passing tests. |
4260
-6.91%35
-30%