mco_fh_record_create

Returns the handle of a database record in the table to which the writer is assigned.

Prototype

    mco_fh_record_h mco_fh_record_create(/*IN*/ mco_fh_writer_h wr)

Arguments

wr
The writer handle.

Description

This function returns the handle of a database record in the table to which the writer passed in argument wr is assigned.

Return Codes

mco_fh_record_h
The handle of the created database record.
NULL
The writer handle is invalid.

Example

    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(it->writer);
    }