Adds a database table to the module’s list of tables.
mco_fh_ret mco_fh_mod_add_table(/*IN*/ mco_fh_module_h h,
/*IN*/ const char *rec_type,
/*IN*/ const char *name,
/*IN*/ const char **fields,
/*IN*/ mco_size_t nfields)
h
rec_type
name
fields
nfields
fields array.This function instructs the module to use the database table as specified. The module uses this information to determine which tables and fields to write.
MCO_FH_OK
MCO_FH_E_INVALID_RECORD_TYPE
MCO_FH_E_BAD_HANDLE
mco_fh_ret mco_fh_mod_add_table(mco_fh_module_h h, const char *rec_type,
const char *name, const char **fields, mco_size_t nfields)
{
return reinterpret_cast<TestFeedHandler *>(h)->addTable(rec_type, name, fields, nfields);
}