logo

const class

sql::Col

sys::Obj
  sys::Slot
    sys::Field
      sql::Col

Col models a column of a relational table. Col is a subclass of Field and uses the standard reflection APIs.

See docLib::Sql.

Slots

get

override Obj get(Obj row)

Get the column value for the specified row.

index

const Int index

Zero based index of the column in the query result.

make

new make(Int index, Str name, Type of, Str sqlType, Str:Obj facets := null)

Construct a column for the given meta-data.

set

override Void set(Obj row, Obj val)

Set the column value for the specified row.

sqlType

const Str sqlType

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