2.1. Conversion - Access functions - data conversion
ODABA provides built-in conversions, which usually convert values in operations to the format of the left operator. Besides, one may request elementary values in different data types, which can be requested by explicit conversion functions.
Explicit conversion functions are supported for elementary values, only, and not for arrays and complex data types (except DateTime). In order to convert single array elements, the value has to be indexed by the [] operator.
Functions
- size - Get size for current value
- toBig - Convert value to big integer
- toBool - Convert value to Boolean value
- toDate - Convert value to date value
- toDateTime - Convert value to timestamp value
- toDouble - Convert value to floating value
- toInstance - Convert value into instance
- toInteger - Convert to integer value
- toKey - Convert value into key
- toNormalizedInteger - Get normalized integer value
- toString - Convert to string value
- toTime - Convert to time value