collectOnCreateStatements method

Future<List<String>> collectOnCreateStatements([
  1. SqlDialect dialect = SqlDialect.sqlite
])

Opens the database and runs the onCreate migration callback, collecting all statements that were executed in the process.

Implementation

Future<List<String>> collectOnCreateStatements(
    [SqlDialect dialect = SqlDialect.sqlite]) async {
  final collected = await _collect(dialects: [dialect]);
  return collected.collectedStatements.map((e) => e.stmt).toList();
}