ectypes-downstairs
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -14,3 +14,4 @@ var DownstairsStrategy = function(downstairsConnection){ | ||
DownstairsStrategy.prototype.create = function(modelName, values, cb){ | ||
this.downstairsConnection.modelConstructors[modelName].create(values, cb); | ||
var record = new this.downstairsConnection.modelConstructors[modelName](values) | ||
record.save(cb); | ||
} | ||
@@ -17,0 +18,0 @@ |
{ | ||
"name": "ectypes-downstairs", | ||
"description": "An ectypes strategy for Downstairs", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/moneytribeaustralia/ectypes-downstairs.js", | ||
"author": { | ||
"name": "Nicholas Faiz", | ||
"name": "nicholasf, damienwhaley", | ||
"email": "nicholas.faiz@gmail.com" | ||
@@ -32,3 +32,3 @@ }, | ||
"dependencies": { | ||
"downstairs": "~0.1.3a", | ||
"downstairs": "0.3.5", | ||
"sql": "~0.1.0", | ||
@@ -35,0 +35,0 @@ "ectypes": "~1.0.0", |
# ectypes-downstairs | ||
An ectypes strategy for Downstairs | ||
An ectypes strategy for the Downstairs ORM. | ||
## Getting Started | ||
Install the module with: `npm install ectypes-downstairs` | ||
For ectypes see https://github.com/nicholasf/ectypes.js . | ||
For Downstairs see https://github.com/moneytribeaustralia/downstairs.js | ||
```javascript | ||
var ectypes_downstairs = require('ectypes-downstairs'); | ||
``` | ||
## Documentation | ||
_(Coming soon)_ | ||
_(Coming soon)_ - see the tests for now. | ||
@@ -19,3 +17,2 @@ ## Examples | ||
## Contributing | ||
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt). | ||
@@ -26,3 +23,7 @@ ## Release History | ||
## License | ||
Copyright (c) 2012 Nicholas Faiz | ||
Copyright (c) 2012 Moneytribe | ||
## Authors | ||
* Moneytribe dev (nicholasf, damienwhaley). | ||
Licensed under the MIT license. |
@@ -26,3 +26,2 @@ var DownstairsStrategy = require('../lib/ectypes-downstairs.js'); | ||
, 'updated_at' | ||
, 'is_active' | ||
, 'email' | ||
@@ -29,0 +28,0 @@ , 'password' |
28
7478
+ Addeddownstairs@0.3.5(transitive)
- Removeddownstairs@0.1.9(transitive)
Updateddownstairs@0.3.5