# ColumnMetadata

data class ColumnMetadata(val name: String, val jdbcType: Int, val sqlType: String, val nullable: Boolean, val size: Int?, val scale: Int?, val autoIncrement: Boolean, val defaultDbValue: String?, val comment: String? = null)

Represents metadata information about a specific column.

## Constructors

ColumnMetadata
Link copied to clipboard
constructor(name: String, jdbcType: Int, sqlType: String, nullable: Boolean, size: Int?, scale: Int?, autoIncrement: Boolean, defaultDbValue: String?, comment: String? = null)

## Properties

autoIncrement
Link copied to clipboard
val autoIncrement: Boolean

Whether the column is auto-incremented.

comment
Link copied to clipboard
val comment: String?

Optional comment on the column.

defaultDbValue
Link copied to clipboard
val defaultDbValue: String?

Default value of the column.

jdbcType
Link copied to clipboard
val jdbcType: Int

JDBC type of the column.

name
Link copied to clipboard
val name: String

Name of the column.

nullable
Link copied to clipboard
val nullable: Boolean

Whether the column is nullable or not.

scale
Link copied to clipboard
val scale: Int?

Optional amount of fractional digits allowed in the column.

size
Link copied to clipboard
val size: Int?

Optional size of the column.

sqlType
Link copied to clipboard
val sqlType: String

SQL type of the column.