MCPcopy
hub / github.com/BuilderIO/agent-native / lastSelect

Function lastSelect

packages/core/src/progress/store.spec.ts:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37const { listRuns } = await import("./store.js");
38
39function lastSelect(): ExecCall {
40 const selects = execCalls.filter((c) => /^\s*SELECT\b/i.test(c.sql));
41 if (selects.length === 0) throw new Error("no SELECT was executed");
42 return selects[selects.length - 1];
43}
44
45describe("progress store", () => {
46 beforeEach(() => {

Callers 1

store.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected