generateCreateTableSQLs method

  1. @override
List<SQLBuilder> generateCreateTableSQLs({
  1. bool ifNotExists = true,
  2. bool sortColumns = true,
})
override

Generate all the SQLs to create the tables.

Implementation

@override
List<SQLBuilder> generateCreateTableSQLs(
    {bool ifNotExists = true, bool sortColumns = true}) {
  var sqls = generateEntityRepositoresCreateTableSQLs(
      ifNotExists: ifNotExists, sortColumns: sortColumns);

  var allSQLs = sqls.values
      .expand((e) => e.allSQLBuilders)
      .toList()
      .toHierarchicalOrder();

  return allSQLs;
}