Request that the module provide metadata.
mco_fh_ret mco_fh_mod_fill_metadata(/*IN*/ mco_fh_module_h h)
h
This function requests that the module provide metadata using the
mco_fh_metadata_add() API call. If the
module is unable to provide metadata, it should return
MCO_FH_E_NOT_IMPLEMENTED.
MCO_FH_OK
MCO_FH_E_NOT_IMPLEMENTED
mco_fh_mod_get_field_info()
function to retrieve the types of fields configured by the user.MCO_FH_E_BAD_HANDLE
mco_fh_ret mco_fh_mod_fill_metadata(mco_fh_module_h h)
{
mco_fh_metadata_add(db, "Quote", "symbol", McoSql::tpString, 4, 0);
mco_fh_metadata_add(db, "Quote", "exchangeCode", McoSql::tpInt4, 0, 0);
mco_fh_metadata_add(db, "Quote", "bid", McoSql::tpReal4, 0, 0);
mco_fh_metadata_add(db, "Quote", "ask", McoSql::tpReal4, 0, 0);
mco_fh_metadata_add(db, "Quote", "isNBBO", McoSql::tpBool, 0, 0);
return MCO_FH_OK;
}