(path: string)
| 78 | ) |
| 79 | |
| 80 | const pgDumpFile = (path: string) => |
| 81 | Effect.gen(function*() { |
| 82 | const fs = yield* FileSystem |
| 83 | const path_ = yield* Path |
| 84 | const dump = yield* pgDumpAll |
| 85 | yield* fs.makeDirectory(path_.dirname(path), { recursive: true }) |
| 86 | yield* fs.writeFileString(path, dump) |
| 87 | }).pipe( |
| 88 | Effect.mapError((error) => new Migrator.MigrationError({ reason: "failed", message: error.message })) |
| 89 | ) |
| 90 | |
| 91 | return pgDumpFile(path) |
| 92 | } |
no test coverage detected
searching dependent graphs…