DbEnv::log_set_config API Ref

#include <db_cxx.h>

int DbEnv::log_set_config(u_int32_t flags, int onoff);

int DbEnv::log_get_config(u_int32_t which, int *onoffp)


Description: DbEnv::log_set_config

The DbEnv::log_set_config method configures the Berkeley DB logging subsystem.

The DbEnv::log_set_config method configures a database environment, not only operations performed using the specified DbEnv handle.

The DbEnv::log_set_config method may be called at any time during the life of the application.

The DbEnv::log_set_config method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters
flags onoff

Errors

The DbEnv::log_set_config method may fail and throw DbException, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:


EINVAL

Description: DbEnv::log_get_config

The DbEnv::log_get_config method returns whether the specified which parameter is currently set or not.

The DbEnv::log_get_config method may be called at any time during the life of the application.

The DbEnv::log_get_config method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters
which onoffp If the returned onoff value is zero, the parameter is off; otherwise on.


Class DbEnv
See Also Database Environments and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.