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

Function flush

scripts/check-migrations-safety.ts:76–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 return line
75 }
76 const flush = () => {
77 const sql = buf.trim()
78 if (sql.length > 0 && startOffset >= 0) statements.push({ sql, startLine: lineAt(startOffset) })
79 buf = ''
80 startOffset = -1
81 }
82
83 for (let i = 0; i < content.length; i++) {
84 const c = content[i]

Callers 1

parseStatementsFunction · 0.70

Calls 2

lineAtFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected