Create a database writer object.
mco_fh_writer_h mco_fh_writer_create(/*IN*/ mco_fh_db_h db,
/*IN*/ const char *table_name)
| db | The database handle |
| table_name | Name of the database table |
This function returns the handle of a database writer for the specified table.
| mco_fh_writer_h | Handle of the database writer |
| NULL | The database handle or table name is invalid |
...
std::vector<TableInfo>::iterator it;
for (it = tables.begin(); it != tables.end(); ++it)
{
it->writer = mco_fh_writer_create(db, it->name.c_str());
it->record = mco_fh_record_create(writer);
}
...