MCPcopy Create free account
hub / github.com/TanStack/db / debug

Function debug

packages/db-ivm/src/operators/debug.ts:38–57  ·  view source on GitHub ↗
(
  name: string,
  indent: boolean = false,
)

Source from the content-addressed store, hash-verified

36 * @param indent - Whether to indent the debug output
37 */
38export function debug<T>(
39 name: string,
40 indent: boolean = false,
41): PipedOperator<T, T> {
42 return (stream: IStreamBuilder<T>): IStreamBuilder<T> => {
43 const output = new StreamBuilder<T>(
44 stream.graph,
45 new DifferenceStreamWriter<T>(),
46 )
47 const operator = new DebugOperator<T>(
48 stream.graph.getNextOperatorId(),
49 stream.connectReader(),
50 output.writer,
51 name,
52 indent,
53 )
54 stream.graph.addOperator(operator)
55 return output
56 }
57}

Callers 15

rxdbCollectionOptionsFunction · 0.85
handleInsertMethod · 0.85
handleUpdateMethod · 0.85
handleDeleteMethod · 0.85
handleSnapshotErrorFunction · 0.85
loadSubsetFunction · 0.85
awaitTxIdFunction · 0.85
awaitMatchFunction · 0.85
checkMatchFunction · 0.85
addTagsToRowFunction · 0.85
processMoveOutEventFunction · 0.85

Calls 3

getNextOperatorIdMethod · 0.80
connectReaderMethod · 0.80
addOperatorMethod · 0.80

Tested by

no test coverage detected