INNER CODE UNIT · TypeScript

getConstructionPlans

timgit/pg-boss · src/index.ts:34

export function getConstructionPlans (schema?: string, options?: types.ConstructionPlanOptions) {
  return Contractor.constructionPlans(schema, options)
}

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) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…