(directory: string)
| 106 | } |
| 107 | |
| 108 | async 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 | |
| 115 | async function generatedSql(directory: string) { |
| 116 | const generated = await generatedMigrations(directory) |
no outgoing calls
no test coverage detected