schemaSource function

String schemaSource(
  1. SchemaSnapshot schema
)

Emits a standalone historical schema library, without application imports.

Implementation

String schemaSource(SchemaSnapshot schema) =>
    '''
// Generated physical schema. Keep historical copies with their migration.
import 'package:orm/migrate.dart';

final schema = ${_snapshotSource(schema)};
''';