SEARCH:

Column Types

Andromeda supports both basic and extended column types.

Basic Types

Column types are specified with the "type_id" keyword, as in this example:

# A decimal number        
column price:             
    type_id:    numb
    colprec: 14
    colscale: 2
    description: Price

# Fixed-width character
column name:
    type_id: char       
    colprec: 8
    description: Name

# Character varying    
column colorcode:
    type_id: vchar      
    colprec: 8
    description: Color Code

The basic types that Andromeda supports are:

Type_id

Colprec

Colscale

char

Required

vchar

Required

numb

Required

Required

int

text

date

dtime

Extended Types

Andromeda provides extended types that provide extra validation or user interface features.

Type_id

Description

cbool

Character Boolean. Aceepts Y or N

gender

Gender/Sex. Accepts M or F

ssn

Char(11), UI formats as xxx-xx-xxxx, no special validation.

ph12

char(12), UI formats as xxx-xxx-xxxx, no special validation.

money

numb(12,2), no special validation

mime-h

A text column. The UI provides a WYSIWYG editor for HTML editing.

time

actually an integer that can have a value from 0 to 1439. This is minutes since midnight. Intended for appointment books where no sub-minute precision is needed.