mco_fh_record_create

Create a database record.

Prototype

 
    mco_fh_record_h mco_fh_record_create(mco_fh_writer_h wr)
 

Arguments

wr The writer handle

Description

This function returns the handle of a record in the table to which this writer is assigned.

Return Codes

mco_fh_record_h Handle of the 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(writer);
    }