DuroDBMS API  1.7
Built-in type conversion operators

OPERATOR cast_as_integer

OPERATOR cast_as_integer (float) RETURNS integer;

OPERATOR cast_as_integer (string) RETURNS integer;

Description

Converts the operand to integer.

Return value

The operand, converted to integer.


OPERATOR cast_as_float

OPERATOR cast_as_float (integer) RETURNS float;

OPERATOR cast_as_float (string) RETURNS float;

Description

Converts the operand to float.

Return value

The operand, converted to float.


OPERATOR cast_as_string

OPERATOR cast_as_string (integer) RETURNS string;

OPERATOR cast_as_string (float) RETURNS string;

OPERATOR cast_as_string (binary) RETURNS string;

Description

Converts the operand to a string.

Return value

The operand, converted to string.


OPERATOR cast_as_binary

OPERATOR cast_as_string (string) RETURNS binary;

Description

Converts the operand to a binary, without a terminating nullbyte.

Return value

The operand, converted to string.


OPERATOR serialize

OPERATOR serialize (value ANY) RETURNS binary;

Description

Converts a value to a binary representation which includes the type.

Return value

The operand, converted to binary representation.