Basic text input and output

Basic text input and output functions convert between the text representation of the opaque data type and the internal database server format.

This category is valid for the C and C++ languages. BladeSmith generates this category by default.

The text representation of an opaque data type is an mi_lvarchar value that contains a printable representation of an instance of the data type. The text representation enters values for the data type in SQL statements such as INSERT and displays values in output from SQL statements such as SELECT.

The names of these functions differ for different programming languages, as listed in the following table.
Table 1. Functions for different programming languages
Language Function names
SQL OpaqueIn(), OpaqueOut()
C OpaqueInput(), OpaqueOutput()
C++ FromString(), ToString()