(operation: DiffTriggerOperation)
| 85 | * Maps {@link DiffTriggerOperation} to TanstackDB operations |
| 86 | */ |
| 87 | export function mapOperation(operation: DiffTriggerOperation) { |
| 88 | switch (operation) { |
| 89 | case DiffTriggerOperation.INSERT: |
| 90 | return `insert` |
| 91 | case DiffTriggerOperation.UPDATE: |
| 92 | return `update` |
| 93 | case DiffTriggerOperation.DELETE: |
| 94 | return `delete` |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Maps TanstackDB operations to {@link DiffTriggerOperation} |
no outgoing calls
no test coverage detected