mco_trans_get_supported_isolation_levels

Get the isolation levels supported by the current Transaction Manager.

Prototype

    int mco_trans_get_supported_isolation_levels( void );

Arguments

void
No arguments.

Description

This function returns a mask indicating the isolation levels supported by the current Transaction Manager.

Return Codes

Integer mask
A bit mask indicating the supported isolation levels.

Example

    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;
        mco_trans_h t;
        int level;

        ...
        rc = mco_db_open_dev( dbname, simple_get_dictionary(), &dev, 1, &db_params );
        if ( MCO_S_OK != rc )
        {
            rc = mco_db_connect(  dbname, &db );
            ...
            level = mco_trans_get_supported_isolation_levels();

            if ( level & MCO_REPEATABLE_READ )
            {
                printf("\nIsolation level is Read_Repeatable." );
            }
            ...
        }
        ...
    }

Files

Header file:
mco.h
Source file:
mursiw.c
Library:
libmcotexcl.a
Header file:
mco.h
Source file:
mursiw.c
Library:
libmcotmursiw.a
Header file:
mco.h
Source file:
mvcc.c
Library:
libmcotmvcc.a
Header file:
mco.h
Source file:
mursiw.c
Library:
libmcotread.a