Data types
The following table lists the data types that are accepted by a UDX written in Lua.
| Datatype | Description |
|---|---|
| date | A date encoded in Unix time format (that is, the number of seconds since 01 Jan 1970). |
| bigint | A 64-bit integer value. |
| char(size) | A fixed-width character string, encoded as a Lua string. |
| double | IEEE double precision floating point number. |
| float | IEEE single precision floating point number, encoded as a double. |
| integer | A 32-bit signed integer encoded as a double. |
| smallint | A 16-bit integer value encoded as a double. |
| timestamp | A timestamp value with millisecond precision encoded as Unix time (seconds since January 1, 1970). |
| varchar(any) | A string of any length encoded as a Lua string value. |
| varchar(size) | A variable-width string of predefined length encoded as Lua string. |
| varargs | If the varargs datatype is used, it can be the only argument accepted by the nzLua UDX. A UDX defined to accept varargs can be called with any combination of datatypes. The UDX is responsible for checking the datatypes and behaving appropriately. |