(data: Partial<TRow> | Array<Partial<TRow>>)
| 295 | }, |
| 296 | |
| 297 | writeUpsert(data: Partial<TRow> | Array<Partial<TRow>>) { |
| 298 | const operation: SyncOperation<TRow, TKey, TInsertInput> = { |
| 299 | type: `upsert`, |
| 300 | data, |
| 301 | } |
| 302 | |
| 303 | const ctx = ensureContext() |
| 304 | const batchContext = activeBatchContexts.get(ctx) |
| 305 | |
| 306 | if (batchContext?.isActive) { |
| 307 | batchContext.operations.push(operation) |
| 308 | return |
| 309 | } |
| 310 | |
| 311 | performWriteOperations(operation, ctx) |
| 312 | }, |
| 313 | |
| 314 | writeBatch(callback: () => void) { |
| 315 | const ctx = ensureContext() |
nothing calls this directly
no test coverage detected