PrismaClientOptions constructor

PrismaClientOptions({
  1. String? datasourceUrl,
  2. Map<String, String>? datasources,
  3. required ErrorFormat errorFormat,
  4. required LogEmitter logEmitter,
})

Create Prisma client options

Implementation

PrismaClientOptions({
  this.datasourceUrl,
  this.datasources,
  required this.errorFormat,
  required this.logEmitter,
}) : assert(!(datasourceUrl != null && datasources != null),
          'DatasourceUrl and datasources cannot be used together');