# mco_fh_writer_create

Create a database writer object.

### 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 | Name of the database table

### Description

> This function returns the handle of a database writer for the specified table.

### Return Codes

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