Interface TableHooks<T, Key>
Callable
- __call(eventName: "creating", subscriber: (this: CreatingHookContext<T, Key>, primKey: Key, obj: T, transaction: Transaction) => any): void
- __call(eventName: "reading", subscriber: (obj: T) => T | any): void
- __call(eventName: "updating", subscriber: (this: UpdatingHookContext<T, Key>, modifications: Object, primKey: Key, obj: T, transaction: Transaction) => any): void
- __call(eventName: "deleting", subscriber: (this: DeletingHookContext<T, Key>, primKey: Key, obj: T, transaction: Transaction) => any): void
-
Parameters
Returns void
-
Parameters
-
eventName: "reading"
-
subscriber: (obj: T) => T | any
-
-
Parameters
Returns T | any
Returns void
-
Parameters
-
eventName: "updating"
-
subscriber: (this: UpdatingHookContext<T, Key>, modifications: Object, primKey: Key, obj: T, transaction: Transaction) => any
-
-
Parameters
-
-
modifications: Object
-
primKey: Key
-
obj: T
-
Returns any
Returns void
-
Parameters
Returns void
Properties
creating
deleting
reading
updating