effect-io-ai

Package: @effect/sql-pg
Module: PgMigrator

PgMigrator.layer

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>

Source

Since v4.0.0