This function creates or opens a persistent database. This function is provided for compatibility with eXtremeDB version 3.5. It replaces the combination of
mco_db_open()andmco_disk_open()(deprecated function calls). For applications using version 4.0 and later, usemco_db_open_dev().
MCO_RET mco_db_open(/*IN*/ const char *dbname,
/*IN*/ mco_dictionary_h dict,
/*IN*/ void *mem_ptr,
/*IN*/ mco_size_t mem_size,
/*IN*/ mco_size_t mem_page_size,
/*IN*/ const char *db_file_path,
/*IN*/ const char *log_file_path,
/*IN*/ void *disk_cache_ptr,
/*IN*/ mco_size_t disk_cache_size,
/*IN*/ mco_size_t disk_page_size,
/*IN*/ mco_offs_t max_database_size,
/*IN*/ MCO_LOG_TYPE log_type);
dbname
declare database dbname DDL statement. Note
that the maximum database name length is 16 characters.dict
mcocomp. Normally,
this handle is passed in by dbname_get_dictionary().mem_ptr
mem_size
mem_page_size
db_file_path
log_file_path
disk_cache_ptr
disk_cache_size
disk_page_size
max_database_size
log_type
This function creates the database dbname according to the parameters specified.
MCO_S_OK
MCO_E_ILLEGAL_PARAM
MCO_E_NOMEM
MCO_E_INSTANCE_DUPLICATE
MCO_E_SHM_ERROR
MCO_ERR_DB_NAMELONG
MCO_E_DISK_INVALID_PARAM
MCO_E_DISK_ALREADY_OPENED
If example code demonstrating how to use this function is required, please contact McObject Support by clicking on the "Send Feedback" link below.
No example code provided.