Members
(static) contract :Object
Trigger contract
Type:
- Object
- Source:
(static) when_options
Trigger when options
- Source:
toJson
Get JSON from Trigger
- Source:
Methods
(async, static) create(f) → {Promise.<Trigger>}
Create trigger
Parameters:
Name | Type | Description |
---|---|---|
f |
- Source:
Returns:
- Type
- Promise.<Trigger>
(static) find(where) → {Array.<T>}
Find triggers in State cache
Parameters:
Name | Type | Description |
---|---|---|
where |
condition |
- Source:
Returns:
- Type
- Array.<T>
(async, static) findAllWithTableName() → {Promise.<*>}
Find all triggers
- Source:
Returns:
- Type
- Promise.<*>
(async, static) findDB(where, selectopts) → {Promise.<*>}
Find triggers in DB
Parameters:
Name | Type | Description |
---|---|---|
where |
||
selectopts |
- Source:
Returns:
- Type
- Promise.<*>
(static) findOne(where) → {T}
Find one trigger in State cache
Parameters:
Name | Type | Description |
---|---|---|
where |
- Source:
Returns:
- Type
- T
(async, static) getTableTriggers(when_trigger, table) → {Promise.<*>}
get triggers
Parameters:
Name | Type | Description |
---|---|---|
when_trigger |
||
table |
- Source:
Returns:
- Type
- Promise.<*>
(async, static) runTableTriggers(when_trigger, table, row) → {Promise.<void>}
Run table triggers
Parameters:
Name | Type | Description |
---|---|---|
when_trigger |
||
table |
||
row |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) update(id, row) → {Promise.<void>}
Update trigger
Parameters:
Name | Type | Description |
---|---|---|
id |
||
row |
- Source:
Returns:
- Type
- Promise.<void>
(async) delete() → {Promise.<void>}
Delete current trigger
- Source:
Returns:
- Type
- Promise.<void>
(async) runWithoutRow(runargs) → {Promise.<*>}
Run trigger without row
Parameters:
Name | Type | Description |
---|---|---|
runargs |
- Source:
Returns:
- Type
- Promise.<*>