MCPcopy Index your code
hub / github.com/Effect-TS/effect / runMigration

Function runMigration

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

Source from the content-addressed store, hash-verified

177 )
178
179 const runMigration = (
180 id: number,
181 name: string,
182 effect: Effect.Effect<unknown, unknown, Client.SqlClient>
183 ) =>
184 Effect.orDieWith(effect, (error: unknown) =>
185 new MigrationError({
186 cause: error,
187 reason: "failed",
188 message: `Migration "${id}_${name}" failed`
189 }))
190
191 // === run
192

Callers 1

makeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected