Remove all objects from a database.
MCO_RET mco_db_clean(/*IN*/ mco_db_h db);
db
mco_db_connect().This function removes all objects from an opened database.
MCO_S_OK
MCO_E_INVALID_HANDLE
MCO_E_ILLEGAL_PARAM
MCO_E_DISK_NOT_OPENED
MCO_E_PAGESIZE
MCO_E_NOMEM
MCO_ERR_DB_NOMEM
MCO_ERR_INDEX
Application snippet: const char *dbname = "SimpleDb"; int main(int argc, char* argv[]) { mco_db_h db; MCO_RET rc; mco_device_t dev; mco_db_params_t db_params; ... if( (rc = mco_runtime_start()) != MCO_S_OK) exit(-1); rc = mco_db_open_dev( dbname, simpledb_get_dictionary(), &dev, 1, &db_params ); if ( MCO_S_OK != rc ) { rc = mco_db_connect( dbname, &db ); ... rc = mco_db_clean( db ); ... } }