const virtual class slanRecord::TableDef

sys::Obj
  slanRecord::TableDef

@Js
@Serializable

Schema is a metadata of records

autoGenerateId

const Bool autoGenerateId := false

auto generate the key

columns

const List<FieldDef> columns

each

Void each(Func<Void,FieldDef,Int> f)

find

FieldDef find(Str name)

get

FieldDef get(Int i)

id

FieldDef? id()

PK of this table

idIndex

const Int idIndex := -1

make

new make(Func<Void,This> f)

name

const Str name

newInstance

virtual Obj newInstance()

nonAutoGenerate

Void nonAutoGenerate(Func<Void,FieldDef> f)

Each Columns except auto generate field

nonIdColumn

Void nonIdColumn(Func<Void,FieldDef> f)

Each Columns except id

size

Int size()

toStr

virtual override Str toStr()

type

const Type type