MCPcopy Create free account
hub / github.com/MaterializeInc/demos / getState

Method getState

connection-examples/nodejs/state.js:16–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 }
15
16 getState() {
17 const list = new Array();
18
19 Array.from(this.#state.entries()).forEach(([key, value]) => {
20 const clone = JSON.parse(key);
21 let i = 0;
22 while (i< value) {
23 list.push(clone);
24 i++;
25 };
26 });
27
28 return list;
29 }
30
31 getHistory() {
32 return this.#history;

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected