summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_large_table2_bdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/chewing_large_table2_bdb.h')
-rw-r--r--src/storage/chewing_large_table2_bdb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/storage/chewing_large_table2_bdb.h b/src/storage/chewing_large_table2_bdb.h
index e12855e..d629f42 100644
--- a/src/storage/chewing_large_table2_bdb.h
+++ b/src/storage/chewing_large_table2_bdb.h
@@ -89,11 +89,19 @@ public:
/* attach method */
bool attach(const char * dbfile, guint32 flags);
+ bool sync() {
+ assert(NULL != m_db);
+ m_db->sync(m_db, 0);
+ return true;
+ }
+
+#if 0
/* load/store method */
/* use in-memory DBM here, for better performance. */
bool load_db(const char * filename);
bool store_db(const char * new_filename);
+#endif
bool load_text(FILE * infile, TABLE_PHONETIC_TYPE type);