effect-io-ai

Package: @effect/sql-mysql2
Module: MysqlMigrator

MysqlMigrator.layer

Creates a layer that runs the configured SQL migrations during layer construction.

Signature

declare const layer: <R>(options: Migrator.MigratorOptions<R>) => Layer.Layer<never, Migrator.MigrationError | SqlError, Client.SqlClient | R>

Source

Since v4.0.0