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 auto-increment status of the existing column and the defined column.

Link copied to clipboard

Whether the existing column identifier matches that of the defined column and has the correct casing.

Link copied to clipboard

Whether the default value of the existing column matches that of the defined column.

Link copied to clipboard

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

Link copied to clipboard

Whether the size and scale of the existing column, if applicable, match those of the defined column.

Link copied to clipboard

Whether there is a mismatch between type of the existing column and 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.