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