Types

Delia is a statically typed language so that its compiler can detect type errors and prevent many common SQL errors.

A Delia program consists of:

  • types - each type represents a database table.
  • values
    • a scalar value holds a single value, such as ‘Chicago’.
    • a struct value represents a row in a database table.
  • statements - perform CRUD operations on the database.

Basic Types

There are six basic scalar types:

TypeDescriptionEquivalent Java type
inta 32-bit integerint
longa 64-bit integerlong
numbera 64-bit floating point numberdouble
stringa text string (Unicode)String
booleanfalse or trueboolean
datea date and time valuejava.util.Date