Companion

object Companion

Functions

Link copied to clipboard
fun toSQLTypeString(kType: KType, defaultVarCharLength: Int = 512): String

If the kType is {Double, Long, Integer, Boolean, Float, Short, Byte} then a string for the appropriate SQL type is returned ("DOUBLE", "BIGINT", "INTEGER", "BOOLEAN", "REAL", "SMALLINT", "SMALLINT"). Any other KType is returned as "VARCHAR($defaultVarCharLength)" The default VARCHAR size is 512.