# ColumnDiff

data class ColumnDiff(val nullability: Boolean, val autoInc: Boolean, val defaults: Boolean, val caseSensitiveName: Boolean, val sizeAndScale: Boolean)

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

## Constructors

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

## Types

Companion
Link copied to clipboard
object Companion

## Properties

autoInc
Link copied to clipboard
val autoInc: Boolean

Whether the existing column has a matching auto-increment sequence.

caseSensitiveName
Link copied to clipboard
val caseSensitiveName: Boolean

Whether the existing column identifier matches and has the correct casing.

defaults
Link copied to clipboard
val defaults: Boolean

Whether the default value of the existing column is correct.

nullability
Link copied to clipboard
val nullability: Boolean

Whether the nullability of the existing column is correct.

sizeAndScale
Link copied to clipboard
val sizeAndScale: Boolean

Whether the size and scale of the existing column, if applicable, is correct.

## 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.