effect-io-ai

Package: @effect/sql-mssql
Module: MssqlMigrator

MssqlMigrator.run

Runs SQL migrations using the configured SqlClient, returning the migrations that were applied.

Signature

declare const run: <R>(options: Migrator.MigratorOptions<R>) => Effect.Effect<ReadonlyArray<readonly [id: number, name: string]>, SqlError | Migrator.MigrationError, Client.SqlClient | R>

Source

Since v4.0.0