Package: @effect/sql-pg
Module: PgMigrator
Creates a layer that runs PostgreSQL migrations during layer construction, including pg_dump-based schema dump support when requested.
Signature
declare const layer: <R>(options: Migrator.MigratorOptions<R>) => Layer.Layer<never, Migrator.MigrationError | SqlError, SqlClient | PgClient | ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path | R>
Since v4.0.0