Berkeley DB : Library.
More...
#include <time.h>
#include <stdlib.h>
#include <syslog.h>
#include <sys/stat.h>
#include <db.h>
#include "../../str.h"
#include "../../lib/srdb2/db.h"
#include "../../lib/srdb2/db_fld.h"
Go to the source code of this file.
Functions
-
int bdb_table_free (bdb_table_p _tp)
- close DB (sync data to disk) and free mem
- int bdblib_close (bdb_db_p _db_p, str *_n)
- closes the underlying Berkeley DB.
-
int bdblib_destroy (void)
- close all DBs and then the DBENV; free all memory
- bdb_tcache_p bdblib_get_table (bdb_db_t *_db, str *_s)
- look thru a linked list for the table.
- int bdblib_reopen (bdb_db_p _db_p, str *_n)
- opens the underlying Berkeley DB.
Detailed Description
Definition in file bdb_lib.h.
Function Documentation
| int bdblib_close |
( |
bdb_db_p |
_db_p, |
|
|
str * |
dirpath | |
|
) |
| | |
assumes the lib data-structures are already initialzed; used to sync and reload the db file.
Definition at line 101 of file bdb_lib.c.
References _str::len, and _str::s.
| bdb_tcache_p bdblib_get_table |
( |
bdb_db_t * |
_db, |
|
|
str * |
_s | |
|
) |
| | |
| int bdblib_reopen |
( |
bdb_db_p |
_db_p, |
|
|
str * |
dirpath | |
|
) |
| | |
assumes the lib data-structures are already initialzed; used to sync and reload the db file.
Definition at line 175 of file bdb_lib.c.
References _str::len, and _str::s.