(sql: string)
| 140 | } |
| 141 | |
| 142 | function renderSchema(sql: string) { |
| 143 | return `import { Effect } from "effect" |
| 144 | import type { DatabaseMigration } from "./migration" |
| 145 | |
| 146 | export default { |
| 147 | up(tx) { |
| 148 | return Effect.gen(function* () { |
| 149 | ${renderStatements(sql)} |
| 150 | }) |
| 151 | }, |
| 152 | } satisfies Omit<DatabaseMigration.Migration, "id"> |
| 153 | ` |
| 154 | } |
| 155 | |
| 156 | function renderStatements(sql: string) { |
| 157 | return sql |
no test coverage detected