MCPcopy Index your code
hub / github.com/simstudioai/sim / findExecutedRawSql

Function findExecutedRawSql

apps/sim/lib/table/__tests__/update-row.test.ts:66–73  ·  view source on GitHub ↗
(substring: string)

Source from the content-addressed store, hash-verified

64}
65
66function findExecutedRawSql(substring: string): string | undefined {
67 for (const [arg] of dbChainMockFns.execute.mock.calls) {
68 if (!arg || typeof arg !== 'object') continue
69 const raw = (arg as { rawSql?: unknown }).rawSql
70 if (typeof raw === 'string' && raw.includes(substring)) return raw
71 }
72 return undefined
73}
74
75const EXISTING_ROW = {
76 id: 'row-1',

Callers 1

update-row.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected