()
| 233 | TInsertInput extends object = TRow, |
| 234 | >(getContext: () => SyncContext<TRow, TKey> | null) { |
| 235 | function ensureContext(): SyncContext<TRow, TKey> { |
| 236 | const context = getContext() |
| 237 | if (!context) { |
| 238 | throw new SyncNotInitializedError() |
| 239 | } |
| 240 | return context |
| 241 | } |
| 242 | |
| 243 | return { |
| 244 | writeInsert(data: TInsertInput | Array<TInsertInput>) { |
no outgoing calls
no test coverage detected