Module

x/pg_mem/migrate/migrate-interfaces.ts>MigrationParams

An in memory postgres DB instance for your unit tests
Go to Latest
interface MigrationParams
import { type MigrationParams } from "https://dotland.deno.dev/x/pg_mem@3.0.2/migrate/migrate-interfaces.ts";

Properties

optional
force: boolean

If true, will force the migration API to rollback and re-apply the latest migration over again each time when Node.js app launches.

optional
table: string

Migrations table name. Default is 'migrations'

optional
migrationsPath: string

Path to the migrations folder. Default is path.join(process.cwd(), 'migrations')

optional
migrations: readonly MigrationData[]

Migration data read from migrations folder. migrationsPath will be ignored if this is provided.