( options: Migrator.MigratorOptions<R> )
| 97 | * @since 1.0.0 |
| 98 | */ |
| 99 | export const layer = <R>( |
| 100 | options: Migrator.MigratorOptions<R> |
| 101 | ): Layer.Layer< |
| 102 | never, |
| 103 | Migrator.MigrationError | SqlError, |
| 104 | PgClient | Client.SqlClient | CommandExecutor | FileSystem | Path | R |
| 105 | > => Layer.effectDiscard(run(options)) |