(
tableName: string,
dataChangedFunction: string,
)
| 134 | ); |
| 135 | |
| 136 | const addDataChangedTriggers = ( |
| 137 | tableName: string, |
| 138 | dataChangedFunction: string, |
| 139 | ) => |
| 140 | promiseAll( |
| 141 | arrayMap([INSERT, DELETE, UPDATE], (action, newOrOldOrBoth) => |
| 142 | createTrigger( |
| 143 | OR_REPLACE, |
| 144 | escapeIds(TINYBASE, DATA_CHANGED, configHash, tableName, action), |
| 145 | `AFTER ${action} ON${escapeId(tableName)}FOR EACH ROW WHEN(${when( |
| 146 | tableName, |
| 147 | newOrOldOrBoth as 0 | 1 | 2, |
| 148 | )})`, |
| 149 | dataChangedFunction, |
| 150 | ), |
| 151 | ), |
| 152 | ); |
| 153 | |
| 154 | const addPersisterListener = async ( |
| 155 | listener: PersisterListener<Persist>, |
no test coverage detected
searching dependent graphs…