1
1
## About [ <img src =" https://secure.travis-ci.org/1602/jugglingdb.png " />] ( http://travis-ci.org/#!/1602/jugglingdb )
2
2
3
- JugglingDB is cross-db ORM for nodejs, providing ** common interface ** to access
4
- most popular database formats. Currently supported are: mysql, sqlite3,
5
- postgres, couchdb, mongodb, redis, neo4j and js-memory-storage (yep,
6
- self-written engine for test-usage only). You can add your favorite database
7
- adapter, checkout one of the existing adapters to learn how, it's super-easy, I
8
- guarantee.
3
+ [ JugglingDB(3) ] ( http://jugglingdb.co ) is cross-db ORM for nodejs, providing
4
+ ** common interface ** to access most popular database formats. Currently
5
+ supported are: mysql, sqlite3, postgres, couchdb, mongodb, redis, neo4j and
6
+ js-memory-storage (yep, self-written engine for test-usage only). You can add
7
+ your favorite database adapter, checkout one of the existing adapters to learn
8
+ how, it's super-easy, I guarantee.
9
9
10
10
Jugglingdb also works on client-side (using WebService and Memory adapters),
11
11
which allows to write rich client-side apps talking to server using JSON API.
@@ -257,9 +257,9 @@ user.save(callback);
257
257
// afterSave
258
258
// callback
259
259
user .
updateAttribute (
' email' ,
' [email protected] ' , callback);
260
+ // beforeUpdate
260
261
// beforeValidation
261
262
// afterValidation
262
- // beforeUpdate
263
263
// afterUpdate
264
264
// callback
265
265
user .destroy (callback);
@@ -275,7 +275,7 @@ User.create(data, callback);
275
275
```
276
276
277
277
Read the tests for usage examples: ./test/common_test.js
278
- Validations: ./test/validations_test .js
278
+ Validations: ./test/validations.test .js
279
279
280
280
## Your own database adapter
281
281
0 commit comments