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

Method get_state

connection-examples/python/pg8000/state.py:18–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.history = [] if collect_history else None
17
18 def get_state(self) -> List[T]:
19 result = []
20 for key, value in self.state.items():
21 clone = json.loads(key)
22 for i in range(int(value)):
23 result.append(clone)
24 return result
25
26 def get_history(self):
27 return self.history

Callers 1

subscribe.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected