db9010 / com.jovial.db9010 / TableColumn

TableColumn

class TableColumn<T> : Column<T>

A column in a Table. The SQL type of the column is determined by sqlType, and the Kotlin type is determined by adapter. See Table

Constructors

<init>

A column in a Table. The SQL type of the column is determined by sqlType, and the Kotlin type is determined by adapter. See Table

TableColumn(table: Table, sqlName: String, sqlType: String, adapter: ValueAdapter<T>, jsonName: String = "${table.tableName}.$sqlName")

Properties

qualifiedName

The name of this column, qualified by the table name if there is one. Gives a value like "MyTable.myColumn".

val qualifiedName: String

sqlType

The SQL type of this column, like "VARCHAR(50) NOT NULL".

val sqlType: String

table

The Table of which this column is a part.

val table: Table