Create or open 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 eXtremeDB 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 | The name of the database to open. Taken from the declare database dbname DDL statement. Note that the maximum database name length is 16 characters |
dict | A handle to the dictionary that was created by the eXtremeDB schema compiler mcocomp . Normally, this handle is passed in by dbname_get_dictionary ()
|
mem_ptr | Conventional memory address for database meta-data |
mem_size |
Size of conventional memory portion |
mem_page_size |
Size of database pages |
db_file_path |
Database data file path |
log_file_path |
Database log file path |
disk_cache_ptr |
Conventional memory address for disk cache |
disk_cache_size |
Size of disk cache |
disk_page_size |
Size of disk cache pages |
max_database_size |
Maximum size of the database |
log_type |
Database log type |
This function creates the database dbname according to the parameters specified..
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.