planFromDatabase method

Future<PostgresqlMigrationPlan> planFromDatabase({
  1. required SessionExecutor executor,
  2. required SchemaDocument to,
})

Builds a plan by introspecting the live database first.

Implementation

Future<PostgresqlMigrationPlan> planFromDatabase({
  required pg.SessionExecutor executor,
  required SchemaDocument to,
}) async {
  return plan(from: await schemaIntrospector.introspect(executor), to: to);
}