7 ms·
Neither Sequelize nor Bookshelf has persistence ignorance as far as i know.
by whatthemick 12y ago
Neither Sequelize nor Bookshelf has persistence ignorance as far as i know.
- mackwic 12y agoOk, 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?