Create a DECIMAL data type
OptionalprecisionOrOptions: number | { precision?: number; scale?: number; unsigned?: boolean }
Either precision number or an options object
Number of decimal places (when precision is a number)
Whether the value is unsigned
Total number of digits (precision)
Number of digits after the decimal point (scale)
OptionalunsignedWhether the value is unsigned (MySQL/MariaDB only)
Compare this DataType with another DataType for equality
The DataType to compare with
true if the types are equal, false otherwise
Serialize a value for storage based on this DataType
The value to serialize
The serialized value
Optionaldialect: string
Base class for all data types