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

Function layer

packages/sql/pg/src/PgMigrator.ts:267–278  ·  view source on GitHub ↗
(
  options: Migrator.MigratorOptions<R>
)

Source from the content-addressed store, hash-verified

265 * @since 4.0.0
266 */
267export const layer = <R>(
268 options: Migrator.MigratorOptions<R>
269): Layer.Layer<
270 never,
271 Migrator.MigrationError | SqlError,
272 | SqlClient
273 | PgClient
274 | ChildProcessSpawner.ChildProcessSpawner
275 | FileSystem.FileSystem
276 | Path.Path
277 | R
278> => Layer.effectDiscard(run(options))

Callers

nothing calls this directly

Calls 1

runFunction · 0.70

Tested by

no test coverage detected