DB->set_flags API Ref

#include <db.h>

int DB->set_flags(DB *db, u_int32_t flags);

int DB->get_flags(DB *db, 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 returns a non-zero error value on failure and 0 on success.

Parameters
flags

Errors

The DB->set_flags method may fail and 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 returns a non-zero error value on failure and 0 on success.

Parameters
flagsp


Class DB
See Also Databases and Related Methods

APIRef

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