MCPcopy Create free account
hub / github.com/Effect-TS/effect / runMigration

Function runMigration

packages/effect/src/unstable/sql/Migrator.ts:207–219  ·  view source on GitHub ↗
(
      id: number,
      name: string,
      effect: Effect.Effect<unknown, unknown, Client.SqlClient>
    )

Source from the content-addressed store, hash-verified

205 )
206
207 const runMigration = (
208 id: number,
209 name: string,
210 effect: Effect.Effect<unknown, unknown, Client.SqlClient>
211 ) =>
212 Effect.catch(effect, (error: unknown) =>
213 Effect.die(
214 new MigrationError({
215 cause: error,
216 kind: "Failed",
217 message: `Migration "${id}_${name}" failed`
218 })
219 ))
220
221 // === run
222

Callers 1

makeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected