4 ms·
Ok, after a lookup, "persistence ignorance" is the ability to have implicit save of the models when things change. Bookshelf has events, which make very easy t
by mackwic 12y ago
Ok, after a lookup, "persistence ignorance" is the ability to have implicit save of the models when things change.
Bookshelf has events, which make very easy to wire some kind of persistence ignorance (we implement it in our base Model class).
- whatthemick 12y agoI would expect those events to be triggered by action though, then it wouldn't be persistence ignorance.
- k__ 12y agoSequelize has the build method, which persists automatically. Couldn't the rest be achieved by simply adding a few (update, delete) methods to the model classes?