mco_fh_writer_create
创建一个数据库写入器对象。
此函数返回指定表的数据库写入器的句柄。
mco_fh_writer_h mco_fh_writer_create(
/*IN*/ mco_fh_db_h db,
/*IN*/ const char *table_name
)
参数
db
mco_fh_db_h
数据库句柄。
rec_type
const char
数据库表的名称。
返回
mco_fh_writer_h
数据库写入器的句柄。
NULL
数据库句柄或表名无效。
示例
...
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);
}
...