createSchemaStatements method

List<String> createSchemaStatements(
  1. SchemaDocument schema
)

Returns DDL needed to create the whole schema.

Implementation

List<String> createSchemaStatements(SchemaDocument schema) {
  final effectiveSchema = schema.withoutIgnored();
  return <String>[
    ...createEnumStatements(effectiveSchema),
    ...createTableStatements(effectiveSchema),
    ...createImplicitManyToManyTableStatements(effectiveSchema),
  ];
}