# ColumnDiff

data class ColumnDiff(val nullability: Boolean, val type: Boolean, val autoInc: Boolean, val defaults: Boolean, val caseSensitiveName: Boolean, val sizeAndScale: Boolean, val comment: Boolean = false)

Represents differences between a column definition and database metadata for the existing column.

## Constructors

ColumnDiff
Link copied to clipboard
constructor(nullability: Boolean, type: Boolean, autoInc: Boolean, defaults: Boolean, caseSensitiveName: Boolean, sizeAndScale: Boolean, comment: Boolean = false)

## Types

Companion
Link copied to clipboard
object Companion

## Properties

autoInc
Link copied to clipboard
val autoInc: Boolean

Whether there is a mismatch between the auto-increment status of the existing column and that of the defined column.

caseSensitiveName
Link copied to clipboard
val caseSensitiveName: Boolean

Whether there is a mismatch between the identifier of the existing column and that of the defined column, both for the string value itself and for the casing.

comment
Link copied to clipboard
val comment: Boolean

Whether there is a mismatch between the comment of the existing column and that of the defined column.

defaults
Link copied to clipboard
val defaults: Boolean

Whether there is a mismatch between the default value of the existing column and that of the defined column.

nullability
Link copied to clipboard
val nullability: Boolean

Whether there is a mismatch between the nullability of the existing column and that the defined column.

sizeAndScale
Link copied to clipboard
val sizeAndScale: Boolean

Whether there is a mismatch between the size and scale of the existing column, if applicable, and those values of the defined column.

type
Link copied to clipboard
val type: Boolean

Whether there is a mismatch between the type of the existing column and that of the defined column.

## Functions

hasDifferences
Link copied to clipboard
fun hasDifferences(): Boolean

Returns `true` if there is a difference between the column definition and the existing column in the database.