Get the isolation levels supported by the current Transaction Manager.
int mco_trans_get_supported_isolation_levels( void );
void
This function returns a mask indicating the isolation levels supported by the current Transaction Manager.
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." );
}
...
}
...
}