Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.MigrationResult

Kysely dialect for PostgreSQL using the Postgres.js client.
interface kysely.MigrationResult
import { type kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/mod.ts";
const { MigrationResult } = kysely;

Properties

readonly
migrationName: string
readonly
direction: MigrationDirection

The direction in which this migration was executed.

readonly
status: "Success" | "Error" | "NotExecuted"

The execution status.

  • Success means the migration was successfully executed. Note that if any of the later migrations in the {@link MigrationResult.results} list failed (have status Error) AND the dialect supports transactional DDL, even the successfull migrations were rolled back.

  • Error means the migration failed. In this case the {@link MigrationResult.error} contains the error.

  • NotExecuted means that the migration was supposed to be executed but wasn't because an earlier migration failed.