GeneratorOptions constructor
const
GeneratorOptions({
- required GeneratorConfig generator,
- List<
GeneratorConfig> ? otherGenerators, - required String schemaPath,
- required Document dmmf,
- required List<
DataSource> datasources, - required String datamodel,
- required String version,
- BinaryPaths? binaryPaths,
- required bool dataProxy,
- 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;