documentation.lsfusion.org will be shutting down soon, use https://docs.lsfusion.org instead please.

Skip to end of metadata
Go to start of metadata

The TABLE instruction creates an new table.

Syntax

TABLE name(className1, ..., classNameN) [FULL | NODEFAULT];

Description

The TABLE  instruction declares a new table and adds it to the current module


Parameters

name

Table name. Simple ID. The name must be unique within the current namespace.

className1, ..., classNameN

List of class names. Each name is a class ID. Specifies classes for the key fields of the table being created. Cannot be empty,

FULL

The keyword that, when specified, marks the table as full (that is, containing all objects belonging to the classes of the table's key fields).  

NODEFAULT

The keyword that, when specified, excludes the table from the process of automatic property table determining.

Examples

1
2
3
4
5
6
7
8
9
 TABLE book (Book);

in = DATA BOOLEAN (Sku, Stock);
TABLE skuStock (Sku, Stock); // it will store the in property

price = DATA NUMERIC[10,2] (Sku, DATE);
TABLE skuDate (Sku, DATE); // it will store the Sku property

TABLE sku (Sku) FULL;

  • No labels