Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Deprecation(val sinceVersion: String, val reason: String, val plannedRemovalVersion: String?)
Link copied to clipboard
Link copied to clipboard
data class Field(val kind: FieldKind, val name: String, val isRequired: Boolean, val isList: Boolean, val isUnique: Boolean, val isId: Boolean, val isReadOnly: Boolean, val isGenerated: Boolean? = null, val isUpdatedAt: Boolean? = null, val type: String, val dbNames: List<String>? = null, val hasDefaultValue: Boolean, val default: Any? = null, val relationFromFields: List<String>? = null, val relationToFields: List<Any>? = null, val relationOnDelete: String? = null, val relationName: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class FieldRefType(val name: String, val allowTypes: List<TypeRef.FieldRefAllowType<TypeRef>>, val fields: List<SchemaArg>)
Link copied to clipboard
Link copied to clipboard
data class GeneratorManifest(val prettyName: String?, val defaultOutput: String? = null, val denylists: GeneratorManifest.DenyLists? = null, val requiresGenerators: List<String>? = null, val requiresEngines: List<String>? = null, val version: String? = null, val requiresEngineVersion: String? = null)
Link copied to clipboard
data class GeneratorOptions(val generator: GeneratorConfig, val otherGenerators: List<GeneratorConfig>, val schemaPath: String, val dmmf: DMMFDocument, val datasources: List<DataSource>, val datamodel: String, val version: String, val dataProxy: Boolean)
Link copied to clipboard
A simplified implementation of GeneratorProtocolHandler.
Link copied to clipboard
interface GeneratorProtocolHandler
A simple interface of the Prisma Generator JSON RPC protocol.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class InputType(val name: String, val constraints: InputType.Constraints, val meta: InputType.Meta? = null, val fields: List<SchemaArg>, val fieldMap: Map<String, SchemaArg>? = null)
Link copied to clipboard
Simple implementation of Prisma's restricted JSON RPC protocol
Link copied to clipboard
data class Mappings(val modelOperations: List<ModelMapping>, val otherOperations: OtherOperationMappings)
Link copied to clipboard
data class ModelMapping(val model: String, val plural: String? = null, val findUnique: String? = null, val findUniqueOrThrow: String? = null, val findFirst: String? = null, val findFirstOrThrow: String? = null, val findMany: String? = null, val create: String? = null, val createOne: String? = null, val createMany: String? = null, val update: String? = null, val updateOne: String? = null, val updateMany: String? = null, val upsert: String? = null, val upsertOne: String? = null, val delete: String? = null, val deleteOne: String? = null, val deleteMany: String? = null, val aggregate: String? = null, val groupBy: String? = null, val count: String? = null, val findRaw: String? = null, val aggregateRaw: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class OutputType(val name: String, val fields: List<SchemaField>, val fieldMap: Map<String, SchemaField>? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Schema(val rootQueryType: String? = null, val rootMutationType: String? = null, val inputObjectTypes: Schema.InputTypes, val outputObjectTypes: Schema.OutputTypes, val enumTypes: Schema.EnumTypes, val fieldRefTypes: Schema.FieldRefTypes)
Link copied to clipboard
data class SchemaArg(val name: String, val comment: String? = null, val isNullable: Boolean, val isRequired: Boolean, val inputTypes: List<SchemaArgInputType>, val deprecation: Deprecation? = null)
Link copied to clipboard
data class SchemaArgInputType(val isList: Boolean, val type: ArgType, val location: FieldLocation, val namespace: FieldNamespace? = null)
Link copied to clipboard
Link copied to clipboard
data class SchemaField(val name: String, val isNullable: Boolean? = null, val outputType: OutputTypeRef, val args: List<SchemaArg>, val deprecation: Deprecation? = null, val documentation: String? = null)
Link copied to clipboard