Class: DateType

eclairjs/sql/types. DateType

A date type, supporting "0001-01-01" through "9999-12-31". Please use the singleton DataTypes.DateType. Internally, this is represented as the number of days from epoch (1970-01-01 00:00:00 UTC).

Constructor

new DateType()

Source:

Extends

Methods

defaultSize() → {integer}

The default size of a value of the DateType is 4 bytes.
Overrides:
Source:
Returns:
Type
integer

json() → {string}

The compact JSON representation of this data type.
Inherited From:
Source:
Returns:
Type
string

prettyJson() → {string}

The pretty (i.e. indented) JSON representation of this data type.
Inherited From:
Source:
Returns:
Type
string

simpleString() → {string}

Inherited From:
Source:
Returns:
Type
string

typeName() → {string}

Name of the type used in JSON serialization.
Inherited From:
Source:
Returns:
Type
string