Skip to main content Link Search Menu Expand Document (external link)

PgMigrator.ts overview

Since v1.0.0


Exports Grouped by Category


constructor

run

Signature

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

Source

Since v1.0.0

layers

layer

Signature

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

Source

Since v1.0.0

utils

“@effect/sql/Migrator” (namespace export)

Re-exports all named exports from the “@effect/sql/Migrator” module.

Signature

export * from "@effect/sql/Migrator"

Source

Since v1.0.0

“@effect/sql/Migrator/FileSystem” (namespace export)

Re-exports all named exports from the “@effect/sql/Migrator/FileSystem” module.

Signature

export * from "@effect/sql/Migrator/FileSystem"

Source

Since v1.0.0