This commit is contained in:
Hongze Cheng 2022-01-14 08:11:58 +00:00
parent 523ba0ab98
commit 3b4fabc702
1 changed files with 3 additions and 1 deletions

View File

@ -28,11 +28,13 @@ extern "C" {
struct TDB { struct TDB {
pgsize_t pageSize; pgsize_t pageSize;
tdb_db_t type; tdb_db_t type;
char * fname;
char * dbname;
union { union {
TDB_BTREE *btree; TDB_BTREE *btree;
TDB_HASH * hash; TDB_HASH * hash;
TDB_HEAP * heap; TDB_HEAP * heap;
} dbam; // Different access methods } dbam; // db access method
}; };
#ifdef __cplusplus #ifdef __cplusplus