Initialize database parameters.
void mco_db_params_init( mco_db_params_t * params );
params | The mco_db_params_t structure that will be initialized |
This function sets default parameters (page sizes, number of connections, log policies, etc.,) for the call to the function mco_db_open_dev()
.
Void | No code returned |
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); mco_db_params_init ( &db_params ); /* Initialize the params with default values */ db_params.mem_page_size = MEMORY_PAGE_SIZE; /* Set page size for the in-memory part */ db_params.disk_page_size = 0; /* Set page size to zero to disable disk operations */ db_params.db_max_connections = 1; /* Set total number of connections to the database */ rc = mco_db_open_dev( dbname, simpledb_get_dictionary(), &dev, 1, &db_params ); ... }