createTableStatements method

List<String> createTableStatements(
  1. SchemaDocument schema
)

Returns table creation statements for every model in schema.

Implementation

List<String> createTableStatements(SchemaDocument schema) {
  final effectiveSchema = schema.withoutIgnored();
  return effectiveSchema.models
      .map(
        (model) =>
            createTableStatementForModel(model, schema: effectiveSchema),
      )
      .toList(growable: false);
}