Database environment functions


Functions

int RDB_open_env (const char *path, RDB_environment **envpp)
int RDB_close_env (RDB_environment *envp)

Function Documentation

int RDB_close_env ( RDB_environment *  envp  ) 

RDB_close_env closes the database environment specified by envp.

Parameters:
envp the pointer to the environment.
Returns:
On success, RDB_OK is returned. On failure, an error code is returned.
Errors:
See the documentation of the Berkeley function DB_ENV->close for details.

int RDB_open_env ( const char *  path,
RDB_environment **  envpp 
)

RDB_open_env opens a database environment identified by the system resource path.

In the current implementation, the path passed to RDB_open_env is a Berkeley DB database environment directory. To create a new empty environment, simply pass an empty directory to RDB_open_env.

Parameters:
path pathname of the direcory where the data is stored.
envpp location where the pointer to the environment is stored.
Returns:
On success, RDB_OK is returned. On failure, an error code is returned.
Errors:
See the documentation of the Berkeley DB function DB_ENV->open for details.


Generated on Tue Mar 11 23:48:15 2008 for Duro by  doxygen 1.5.1