GeneratorOptions constructor

const GeneratorOptions({
  1. required GeneratorConfig generator,
  2. List<GeneratorConfig>? otherGenerators,
  3. required String schemaPath,
  4. required Document dmmf,
  5. required List<DataSource> datasources,
  6. required String datamodel,
  7. required String version,
  8. BinaryPaths? binaryPaths,
  9. required bool dataProxy,
  10. bool? postinstall,
})

Implementation

const factory GeneratorOptions({
  required GeneratorConfig generator,

  /// TODO: what is otherGenerators for?
  List<GeneratorConfig>? otherGenerators,
  required String schemaPath,
  required Document dmmf,
  required List<DataSource> datasources,

  /// TODO: deprecate datamodel & rename to schema?
  required String datamodel,

  /// TODO: is it really always version hash? Feature is unclear.
  required String version,
  BinaryPaths? binaryPaths,
  required bool dataProxy,
  bool? postinstall,
}) = _GeneratorOptions;