-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add save event #145
Comments
Can do! |
Would you mind checking out the dev branch and tell me if this is doing what you need now? The event will emit from both a collection and the underlying db instance the collection is assigned to. Events are: 'save' and 'load' e.g. var fdb = new ForerunnerDB(),
db = fdb.db('test'),
coll = db.collection('testCollection');
db.on('load', function () {
// Do something on ANY collection load
});
db.on('save', function () {
// Do something on ANY collection save
});
coll.on('load', function () {
// Do something on ONLY THIS collection load
});
coll.on('save', function () {
// Do something on ONLY THIS collection save
}); |
Irrelon
added
fixed in dev build
waiting for feedback
completed
and removed
planned enhancement
labels
Sep 7, 2016
Hi, Thanks a lot, I'll try to check this today. |
Hi, Save and load events are working ! Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
It would be great to have a saved event when the collection is persisted on disk.
The text was updated successfully, but these errors were encountered: