Package-level declarations

Types

Link copied to clipboard

Generator for JetBrains Exposed's DAO API.

Link copied to clipboard

Generator for JetBrains Exposed's SQL API.

Link copied to clipboard
class GeneratorContext(val outputDir: Path, val datamodel: Datamodel, val rawParsingResult: PRoot?)

Context for generators

Link copied to clipboard
interface ModelGenerator

A generator that takes in a context and does something with it.

Link copied to clipboard
sealed class ScalarType

A scalar type for a field in a Prisma schema.

Link copied to clipboard

A ScalarType with additional accuracy information. Used as the rreturn type of nativeTypeToScalarType.

Functions

Link copied to clipboard

Create an accurate ScalarTypeWithAccuracy with this being the scalar type.

Link copied to clipboard

Create an inaccurate ScalarTypeWithAccuracy with this being the scalar type and the given reason.

Link copied to clipboard
fun nativeTypeToScalarType(fieldName: String, typeName: String, attributes: List<PAttribute>): ScalarTypeWithAccuracy?

Resolves Prisma type (typeName) with additional database attributes into a ScalarType with additional precision information.