Module

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

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

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.