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

Function layer

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

Source from the content-addressed store, hash-verified

107 * @since 4.0.0
108 */
109export const layer = <R>(
110 options: Migrator.MigratorOptions<R>
111): Layer.Layer<
112 never,
113 Migrator.MigrationError | SqlError,
114 | SqlClient
115 | PgClient
116 | ChildProcessSpawner.ChildProcessSpawner
117 | FileSystem.FileSystem
118 | Path.Path
119 | R
120> => Layer.effectDiscard(run(options))

Callers

nothing calls this directly

Calls 1

runFunction · 0.50

Tested by

no test coverage detected