mco_fh_writer_create

Returns the handle of a database writer object for the specified table.

Prototype

    mco_fh_writer_h mco_fh_writer_create(/*IN*/ mco_fh_db_h db,
                                          /*IN*/ const char *table_name)

Arguments

db
The database handle.
table_name
The name of the database table.

Description

This function returns the handle of a database writer for the table specified in argument table_name.

Return Codes

mco_fh_writer_h
The handle of the database writer.
NULL
The database handle or the table name 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);
    }
    ...