ColumnDiff

data class ColumnDiff(val nullability: Boolean, val type: 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

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard

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