nativeTypeToScalarType

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.

Parameters

fieldName

Name of the field, as it is provided in the Prisma schema. Only used for logging.

typeName

Simple type name. Corresponds to the "basic type" in the Prisma schema.

attributes

List of attributes associated to the field. May be empty