Programming guide to Unibase

13 : Creating tables

Definition of a table

<table name="table" The name of a new table.
       [local] This table is only defined for the current module.
       [use="description"]> A description of this table.
<fields {name="field" The fields in the table.
        [type="type"] De default type of a field is a 'string'.
        [default="value"] The value stored in the field the moment a new record is added.
        [display="string"] Display string of this field.
        [use="description"]} Description added to this field.
{<index [name="index"] Without a name this is the key index with the same name as the table.
        fields="field {field}" Order fields of this index.
        [doubles] The index may contain two sets of fields that are identical. Only use this with care.
        [complete] The fields of this index may not contain null values.
        [use="description"]} Description of the index.
</table>