INNER CODE UNIT · TypeScript
getMigrationPlans
timgit/pg-boss · src/index.ts:38
export function getMigrationPlans (schema?: string, version?: number, options?: types.MigrationPlanOptions) {
return Contractor.migrationPlans(schema, version, options)
}
/**
* The catalog query pg-boss uses to find bloated job indexes, as SQL text. Runnable in psql with no
* pg-boss instance and no connection from this process. PostgreSQL only. The heap-less engines
* (CockroachDB, YugabyteDB) do not answer it.
*/
export function getIndexBloatPlans (schema?: string, options?: types.IndexBloatOptions) {
return plans.getBloatedIndexes(schema || plans.DEFAULT_SCHEMA, undefined, options)
}
export function getRollbackPlans (schema?: string, version?: number, options?: types.PlanOptions) {
return Contractor.rollbackPlans(schema, version, options)
}
export class PgBoss extends EventEmitter<types.PgBossEventMap> {