|
res.commit() Commits the current transaction, writing all changed objects to the database, and starts a new transaction. Syntax for (var i in collection1)
collection1.get(i).counter += 1;
// commit changes to elements of collection1 to db
res.commit();
for (var i in collection2)
collection2.get(i).counter -= 1;
// changes to elements of collection2 are committed
// automatically when the request terminates
... comment
|
navigation
Download
Community
Weblog
Mailing Lists
IRC Channel
Documentation
Introductions
Tools
Reference
Project
Roadmap
Bug Reporting
Source
Wiki
Tags
Updates
Related Projects
search
|
||||