@memsdb/core
Version:
A simple embedded document based database with advanced querying, advanced population/tree creation, and multiple storage and backup providers.
20 lines • 563 B
JavaScript
/**
* @category Database Event
*/
export class EventHandler {
/**
* Create a new EventHandler to handle events in MemsDB
* @param eventType MemsDB event type to be handled
* @param func Function to run on event
*/
constructor(eventType, func) {
/**
* Handler function for this event type.
* This function will get called in order of addition to the DB
*/
this.func = () => { };
this.eventType = eventType;
this.func = func;
}
}
//# sourceMappingURL=DBEventHandler.js.map