MCPcopy
hub / github.com/anomalyco/opencode / generatedMigrations

Function generatedMigrations

packages/core/script/migration.ts:108–113  ·  view source on GitHub ↗
(directory: string)

Source from the content-addressed store, hash-verified

106}
107
108async function generatedMigrations(directory: string) {
109 return (await Array.fromAsync(new Bun.Glob("*/migration.sql").scan({ cwd: directory })))
110 .map((file) => file.split("/")[0])
111 .filter((name): name is string => name !== undefined)
112 .sort()
113}
114
115async function generatedSql(directory: string) {
116 const generated = await generatedMigrations(directory)

Callers 3

generateFunction · 0.85
checkFunction · 0.85
generatedSqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected