static/v5/class/lib/data-types.js~NUMBER.html
publicclass| source
lib/data-types.js~ABSTRACT → NUMBER
DECIMAL, DOUBLE, FLOAT, INTEGER, REAL
BIGINT, MEDIUMINT, SMALLINT, TINYINT
Base number type which is used to build other types
| Public Constructor | | public |
constructor(options: Object)
| |
| Name | Type | Attribute | Description | | options | Object | |
type options
| | options.length | string | number |
|
length of type, like INT(4)
| | options.zerofill | boolean |
|
Is zero filled?
| | options.unsigned | boolean |
|
Is unsigned?
| | options.decimals | string | number |
|
number of decimal points, used with length FLOAT(5, 4)
| | options.precision | string | number |
|
defines precision for decimal type
| | options.scale | string | number |
|
defines scale for decimal type
|