The McoSqlOpenParameters constructors, methods and properties are listed below. Note that some items have links to pages with more detailed descriptions:
McoSqlOpenParameters()Default constructor; callssetDefaultValues()to initialize properties.Constructor with arguments to initialize properties.Method: Initializes properties with default values.Properties
char const* databaseNameDatabase name.mco_dictionary_h dictionaryDatabase dictionary handle.size_t mainMemoryDatabaseSizeDatabase size in main memory.void* mainMemoryDatabaseAddressAddress of the main memory portion of the database.size_t maxConnectionsMaximum number of connections to the database.size_t maxTransactionSizeMaximum size of a transaction.size_t mainMemoryPageSizePage size of the main memory portion of the database.uint2 hashLoadFactorThe factor used to determine when a hash index table is extended. Indicates the percent of used items in the hash table. (See Hash Indexes.)
Bitmask indicating database open options (see page OpenFlags).int modeMaskThe database open mode flags. These mode mask options are defined in file
mco.h. (See Database Open Modes.)char* savedImageFile path and name for a saved image (snapshot) of the database.char* diskDatabaseFileName of the data file for the persistent part of the database.char* diskDatabaseLogFileName of the log file for the persistent part of the database.mco_offs_t diskDatabaseMaxSizeThe maximum disk space required for a persistent database. (See Creating Databases.)
void* diskCacheMemoryAddressAddress of the cache for the persistent part of the database.size_t diskCacheSizeCache size for the persistent part of the database.int diskPageSizePage size of the persistent part of the database.MCO_LOG_TYPE logTypeType of logging for the persistent part of the database (see page Setting the Log Type).mco_offs_t redoLogLimitThreshold for REDO logging type (see page Setting the Log Type).MCO_COMMIT_POLICY defaultCommitPolicyThe default transaction commit policy for the persistent part of the database (see page Persistent Database I/O).int compressionLevelCompression level: 0 = no compression, 1 = compression enabled (default).MCO_TRANS_SCHED_POLICY transSchedPolicyScheduling policy for transactions with the same priority. (See MURSIW transaction scheduling policies.)
mco_stream_read streamReaderThe reader callback function when loading a saved database image.void* streamThe stream for reading when loading a saved database image.McoSql::SqlEngine* remoteEngineThe RemoteSqlEngine if not null.uint8 maxTransTime;Maximum transaction time (0 to disable).int maxActivePagesMaximum number of pages (default is 32) in the page hash used internally by the eXtremeDB runtime when encryption protection or data compression is enabled. (See Database Encryption.)
mco_device_t* devicesThe array of memory devices defined for the database.size_t n_devicesThe number of memory devices in the arraydevices.McoSql::Table** tablesThe array of tables defined for this database.size_t n_tablesThe number of tables in the arraytables.McoSql::SqlOptimizerParameters optimizerParamsSQL optimizer parameters if not null.size_t maxClassesUsed to reserve space for classes in the database header to allow dynamic schema modification. (This is commonly done via SQL
create tableoralter tableoperations, so this parameter has no relevance for non-SQL applications).size_t maxIndexesUsed to reserve space for indexes in the database header to allow dynamic schema modification. (This is commonly done via SQL
create tableoralter tableoperations, so this parameter has no relevance for non-SQL applications).size_t maxDictionarySizeUsed to reserve space for the dictionary in the database header to allow dynamic schema modification. (This is commonly done via SQL
create tableoralter tableoperations, so this parameter has no relevance for non-SQL applications).int dictionaryFlagsDictionary flags. Possible values areMCO_DICT_FLAGS_USE_AUTOOIDandMCO_DICT_FLAGS_PRESERVE_FIELDS_ORDER(by default, values are set).size_t backupMapSizeSize of the backup counters array, in bytes, a power of two; ignored if
disk_max_database_sizeis set (set to zero to disable the backup feature). (See Incremental Backup Implementation.)unsigned int backupMinPagesNumber of pages for the last exclusive pass of the backup procedure (set to zero to disable the threshold). (See Incremental Backup Implementation.)unsigned int backupMaxPassesMaximum number of passes before the exclusive pass of the backup procedure. (See Incremental Backup Implementation.)
char *backupMapFileThe name of a file that will be used to store temporary backup data on a
mco_db_close()call. eXtremeDB will use the file system wrapper linked into the process to store the data. Can be set to zero to default to "<persistent-storage>.bmap" to locate the file at the same location as the persistent storage file. (See Incremental Backup Implementation.)compressionLevelThe level of compression: 0 = no compression; 1 = best speed, 9 = best compression. Default value is 0.