Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbSetTableHotAlterCallbackLib

Set the callback library name for hot alter table.

Declaration

CTBOOL ctdbDECL ctdbSetTableHotAlterCallbackLib(CTHANDLE Handle, cpTEXT libName)

Description

FairCom DB now supports passing the names of a shared library and a field conversion function to the hot alter table function. This permits application developers to set a user-defined field conversion function to convert field values from one version of a schema to another version.

We now extend our c-treeDB API API to specify the conversion callback library at a table level and the callback conversion function name at a field level. If the callback library name at table level is not specified, we retrieve the last one used. If no callback library has ever been specified, we return an error.

Returns

ctdbSetTableHotAlterCallbackLib() returns c-treeDB API YES or NO.

See also

c-treeDB API API Functions for User-Defined Hot Alter Table Field Conversion Callback

ctdbSetFieldHotAlterCallbackFunction

ctdbGetTableHotAlterCallbackLib

TOCIndex