MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / fetchData

Function fetchData

test/lang/js/params.test.ts:133–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 const queryStream = new QueryStream("ELECT 1");
132
133 const fetchData = async () => {
134 const rows = [];
135 for await (const row of client.query(queryStream)) {
136 rows.push(row);
137 }
138 };
139
140 await expect(fetchData).rejects.toThrow(
141 "Expected a keyword at the beginning of a statement",

Callers

nothing calls this directly

Calls 2

queryMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected