Fantom

 

const class

sql::Col

sys::Obj
  sql::Col

Col models a column of a relational table. Columns are accessed from rows with Row.col and Row.cols

Slots

indexSource

const Int index

Zero based index of the column in the query result.

makeSource

new make(Int index, Str name, Type of, Str sqlType)

Construct a column for the given meta-data.

nameSource

const Str name

Name of the column.

ofSource

const Type of

Type of the column.

sqlTypeSource

const Str sqlType

The type of the column as defined by the SQL database.

toStrSource

override Str toStr()

Overrides sys::Obj.toStr

Return name.