Syntax Element: types

Description

Declares the base types used by a database class.

Example

This keyword is highlighted like this.
You can click on keywords and concepts in blue.
handdatabase SomeDatabase
{
  types 
    // logical name 'int', database name 'int', integer client type
    int as integer,
    // logical name 'number', database name 'numeric', real number client type
    number ("numeric") as real,
    // logical name 'nstring', database type 'nvarchar', string client type
    nstring ("nvarchar") as string;
    
  version 1.0 : initialized
  {
    design
    {
      public table T
      {
        public column C1 with DataType = type(int);
        public column C2 with DataType = type(int null);
        public column C3 with DataType = type(nstring(20));
        public column C4 with DataType = type(nstring(100) null);
        public column C5 with DataType = type(number(10, 3));
        public column C6 with DataType = type(number(12, 4) null);
      }
    }
  }
}

Notes

Related Use Cases

Related Concepts

Other Actions

documentation | all examples for this syntax element | all examples | use cases | concepts | keywords