type

Row

class Row : Obj

Row models a row of a relational table. See pod-doc.

methods

col

Get a column by name.

cols

Get a read-only list of the columns.

get

Get column value.

set

Set a column value.

toStr

Dump the cells separated by a comma.

trap

Trap is used to get or set a column by name.

Slot Details

col

Col? col(Str name, Bool checked := true)

Get a column by name. If not found and checked is true then throw ArgErr, otherwise return null.

cols

Col[] cols()

Get a read-only list of the columns.

get

@Operator
Obj? get(Col col)

Get column value. See type mapping.

set

@Operator
Void set(Col col, Obj? val)

Set a column value. See type mapping.

toStr

virtual override Str toStr()

Dump the cells separated by a comma.

trap

virtual override Obj? trap(Str name, Obj?[]? args := null)

Trap is used to get or set a column by name.