Search
Preparing search index...
The search index is not available
Celer Light Client API Docs
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"data/database"
Database
TableHooks
Interface TableHooks<T, Key>
Type parameters
T
Key
Hierarchy
TableHooks
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
(
obj
:
T
)
:
T
|
any
Parameters
obj:
T
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
Index
Properties
creating
deleting
reading
updating
Properties
creating
creating
:
DexieEvent
deleting
deleting
:
DexieEvent
reading
reading
:
DexieEvent
updating
updating
:
DexieEvent
Globals
"data/database"
Database
Table
Hooks
creating
deleting
reading
updating
CELER_
DATABASE
Made by
Horyus
. Documentation generated by
TypeDoc.