Package-level declarations

Types

Link copied to clipboard
sealed class ArgType
Link copied to clipboard
class ArgTypeDeserializer : StdDeserializer<ArgType>
Link copied to clipboard
data class BinaryTargetsEnvValue(val fromEnvVar: String?, val value: String)
Link copied to clipboard
data class Datamodel(val models: List<Model>, val enums: List<DatamodelEnum>, val types: List<Model>)
Link copied to clipboard
data class DatamodelEnum(val name: String, val values: List<EnumValue>, val dbName: String? = null, val documentation: String? = null)
Link copied to clipboard
data class DataSource(val name: String, val provider: String, val activeProvider: String, val url: EnvValue, val directUrl: EnvValue?, val schemas: List<String>)
Link copied to clipboard
data class Deprecation(val sinceVersion: String, val reason: String, val plannedRemovalVersion: String?)
Link copied to clipboard
data class DMMFDocument(val datamodel: Datamodel, val schema: Schema, val mappings: Mappings)
Link copied to clipboard
data class EnumValue(val name: String, val dbName: String?)
Link copied to clipboard
data class EnvValue(val fromEnvVar: String?, val value: String?)
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
Link copied to clipboard
data class FieldRefType(val name: String, val allowTypes: List<TypeRef.FieldRefAllowType<TypeRef>>, val fields: List<SchemaArg>)
Link copied to clipboard
data class GeneratorConfig(val name: String, val output: EnvValue?, val isCustomOutput: Boolean, val provider: EnvValue, val config: Map<String, String>, val binaryTargets: List<BinaryTargetsEnvValue>, val previewFeatures: List<String>)
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
Link copied to clipboard

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 Model(val name: String, val dbName: String?, val fields: List<Field>, val uniqueFields: List<List<String>>, val uniqueIndexes: List<UniqueIndex>, val documentation: String? = null, val primaryKey: PrimaryKey?)
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
data class OtherOperationMappings(val read: List<String>, val write: List<String>)
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
data class PrimaryKey(val name: String?, val fields: List<String>)
Link copied to clipboard
data class Query(val name: String, val args: List<SchemaArg>, val output: QueryOutput)
Link copied to clipboard
data class QueryOutput(val name: String, val isRequired: Boolean, val isList: Boolean)
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
data class SchemaEnum(val name: String, val values: List<String>)
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
sealed class TypeRef
Link copied to clipboard
data class UniqueIndex(val name: String, val fields: List<String>)