# CheckConstraint

data class CheckConstraint(val tableName: String, val checkName: String, val checkOp: String) : DdlAware

Represents a check constraint.

## Constructors

CheckConstraint
Link copied to clipboard
constructor(tableName: String, checkName: String, checkOp: String)

## Types

Companion
Link copied to clipboard
object Companion

## Properties

checkName
Link copied to clipboard
val checkName: String

Name of the check constraint.

checkOp
Link copied to clipboard
val checkOp: String

Boolean expression used for the check constraint.

ddl
Link copied to clipboard
open val ddl: List<String>

Returns the list of DDL statements that create this DdlAware instance.

tableName
Link copied to clipboard
val tableName: String

Name of the table where the constraint is defined.

## Functions

createStatement
Link copied to clipboard
open override fun createStatement(): List<String>

Returns the list of DDL statements that create this object.

dropStatement
Link copied to clipboard
open override fun dropStatement(): List<String>

Returns the list of DDL statements that drops this object.

modifyStatement
Link copied to clipboard
open override fun modifyStatement(): List<String>

Returns the list of DDL statements that modify this object.