Db::set_flags API Ref

#include <db_cxx.h>

int Db::set_flags(u_int32_t flags);

int Db::get_flags(u_int32_t *flagsp);


Description: Db::set_flags

Configure a database. Calling Db::set_flags is additive; there is no way to clear flags.

The Db::set_flags method may not be called after the Db::open method is called.

The Db::set_flags 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

Errors

The Db::set_flags 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: Db::get_flags

The Db::get_flags method returns the current flags.

The Db::get_flags method may be called at any time during the life of the application.

The Db::get_flags 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
flagsp


Class Db
See Also Databases and Related Methods

APIRef

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