Returns the count of in-memory pages in the database.
MCO_RET mco_db_total_pages( /*IN*/ mco_db_h h, /*OUT*/ uint4 * total_pages);
db
mco_db_connect().total_pages
uint4 variable to receive the total number of in-memory database pages.This function returns into
total_pagesthe count of in-memory pages in the database referenced by handledb.
MCO_S_OK
MCO_E_INVALID_HANDLE
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; uint4 total_pages; ... if ((rc = mco_runtime_start()) != MCO_S_OK) exit(-1); rc = mco_db_open_dev(dbname, simple_get_dictionary(), &dev, 1, &db_params); if (MCO_S_OK != rc) { rc = mco_db_connect(dbname, &db); ... rc = mco_db_total_pages(db, &total_pages); } ... }