Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.MigrationResultSet

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
interface kysely.MigrationResultSet
import { type kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/mod.ts";
const { MigrationResultSet } = kysely;

All migration methods (Migrator.migrateTo | migrateTo, Migrator.migrateToLatest | migrateToLatest etc.) never throw but return this object instead.

Properties

readonly
optional
error: unknown

This is defined if something went wrong.

An error may have occurred in one of the migrations in which case the results list contains an item with status === 'Error' to indicate which migration failed.

An error may also have occurred before Kysely was able to figure out which migrations should be executed, in which case the results list is undefined.

readonly
optional
results: MigrationResult[]

MigrationResult for each individual migration that was supposed to be executed by the operation.

If all went well, each result's status is Success. If some migration failed, the failed migration's result's status is Error and all results after that one have status ´NotExecuted`.

This property can be undefined if an error occurred before Kysely was able to figure out which migrations should be executed.

If this list is empty, there were no migrations to execute.