IntermediateType

data class IntermediateType(val dialectType: DialectType, val javaType: TypeName = dialectType.javaType, val column: SqlColumnDef? = null, val name: String = "value", val bindArg: SqlBindExpr? = null, val assumedCompatibleTypes: List<IntermediateType> = emptyList(), val simplified: Boolean = false)

Internal representation for a column type, which has dialect data affinity as well as JVM class type.

Constructors

Link copied to clipboard
constructor(dialectType: DialectType, javaType: TypeName = dialectType.javaType, column: SqlColumnDef? = null, name: String = "value", bindArg: SqlBindExpr? = null, assumedCompatibleTypes: List<IntermediateType> = emptyList(), simplified: Boolean = false)

Properties

Link copied to clipboard

The types assumed to be compatible with this type. Validated at runtime.

Link copied to clipboard
val bindArg: SqlBindExpr? = null

The original bind argument expression this intermediate type comes from.

Link copied to clipboard
val column: SqlColumnDef? = null

The column definition this type is sourced from, or null if there is none.

Link copied to clipboard
Link copied to clipboard
val javaType: TypeName
Link copied to clipboard

The name of this intermediate type as exposed in the generated api.

Link copied to clipboard
val simplified: Boolean = false

If this type has been simplified by the SqlDelightDialect, it may not need things like an adapter.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard