effect-io-ai

Package: @effect/sql-clickhouse
Module: ClickhouseMigrator

ClickhouseMigrator.run

Runs SQL migrations for ClickHouse using the supplied migrator options and returns the applied migration IDs and names.

Signature

declare const run: <R2 = never>({ loader, schemaDirectory, table }: Migrator.MigratorOptions<R2>) => Effect.Effect<ReadonlyArray<readonly [id: number, name: string]>, Migrator.MigrationError | SqlError, Client.SqlClient | R2>

Source

Since v4.0.0