Importbinary support function

The importbinary support function takes as an argument a structure that holds the bulk-copy format of the external binary format of the opaque type and returns the internal structure for the opaque type.

Any files that the import function reads must reside on the database server computer. If you do not provide an importbinary support function, the database server imports the binary data in the database server internal representation of the opaque data type.

For C language support, the following function signature is for an importbinary support function of an opaque data type whose internal structure is ll_longlong_t:
ll_longlong_t * ll_longlong_importbin(mi_impexpbin
*client_intrnl_bcopy_format);

The ll_longlong_importbin() function is a cast function from the IMPEXPBIN data type to the ll_longlong_t internal structure. It must be registered as an implicit cast function with the CREATE IMPLICIT CAST statement. For more information, see Create casts for opaque data types.