MCPcopy Index your code
hub / github.com/anomalyco/opencode / renderStatements

Function renderStatements

packages/core/script/migration.ts:156–163  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

154}
155
156function renderStatements(sql: string) {
157 return sql
158 .split("--> statement-breakpoint")
159 .map((statement) => statement.trim())
160 .filter((statement) => statement.length > 0)
161 .map(renderRun)
162 .join("\n")
163}
164
165function renderRun(statement: string) {
166 const lines = statement.replaceAll("\t", " ").split("\n")

Callers 2

renderMigrationFunction · 0.85
renderSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected