mco_runtime_get_options_arr

Return a pointer to the internal array of all runtime option values.

Prototype

    int* mco_runtime_get_options_arr(void);

Description

This function returns a direct pointer to the global array that stores the current values of all runtime options. The array is indexed by the MCO_RT_OPTION_* constants (e.g., MCO_RT_OPTION_DATETIME_PRECISION, MCO_RT_OPTION_HNSW_M, etc.).

The size of the array is MCO_RT_OPTION_LAST elements.

Warning: This is a low-level interface intended primarily for internal use, diagnostics, or advanced debugging. Modifying the array contents directly bypasses validation and may lead to undefined behavior. Use mco_runtime_setoption() to safely change option values.

See Runtime Options for the complete list of available options and their meanings.

Return Value

int*
Pointer to the internal runtime options array. The pointer remains valid for the lifetime of the runtime.

Example

    int main(int argc, char* argv[])
    {
        int* options;
        int precision;

        mco_runtime_start();
        ...
        options = mco_runtime_get_options_arr();
        precision = options[MCO_RT_OPTION_DATETIME_PRECISION];

        printf("Datetime precision: %d\n", precision);
        ...
        return 0;
    }

Files

Header file:
mco.h
Source file:
mcodb.c
Library:
libmcolib.a
Header file:
mco.h
Source file:
corestub.c
Library:
libmcorsqlstub.a