Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MigrationResultSet

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

interface MigrationResultSet {
readonly error?: unknown;
readonly results?: MigrationResult[];
}

§Properties

§
readonly error?: unknown
[src]

This is defined if something went wrong.

An error may have occurred in one of the migrations in which case the {@link 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 {@link results} list is undefined.

§
readonly results?: MigrationResult[]
[src]

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.