Lines Matching refs:tcadb
31 TCADB *tcadb; member
34 DBA_OPEN_FUNC(tcadb) in DBA_OPEN_FUNC() argument
37 TCADB *tcadb = tcadbnew(); in DBA_OPEN_FUNC() local
39 if (tcadb) { in DBA_OPEN_FUNC()
54 tcadbdel(tcadb); in DBA_OPEN_FUNC()
58 if (!tcadbopen(tcadb, path_string)) { in DBA_OPEN_FUNC()
60 tcadbdel(tcadb); in DBA_OPEN_FUNC()
68 ((dba_tcadb_data *) info->dbf)->tcadb = tcadb; in DBA_OPEN_FUNC()
75 DBA_CLOSE_FUNC(tcadb) in DBA_CLOSE_FUNC() argument
79 tcadbclose(dba->tcadb); in DBA_CLOSE_FUNC()
80 tcadbdel(dba->tcadb); in DBA_CLOSE_FUNC()
84 DBA_FETCH_FUNC(tcadb) in DBA_FETCH_FUNC() argument
91 value = tcadbget(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), &value_size); in DBA_FETCH_FUNC()
100 DBA_UPDATE_FUNC(tcadb) in DBA_UPDATE_FUNC() argument
107 if (tcadbvsiz(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key)) > -1) { in DBA_UPDATE_FUNC()
112 result = tcadbput(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), ZSTR_VAL(val), ZSTR_LEN(val)); in DBA_UPDATE_FUNC()
122 DBA_EXISTS_FUNC(tcadb) in DBA_EXISTS_FUNC() argument
128 value = tcadbget(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), &value_len); in DBA_EXISTS_FUNC()
137 DBA_DELETE_FUNC(tcadb) in DBA_DELETE_FUNC() argument
141 return tcadbout(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key)) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
144 DBA_FIRSTKEY_FUNC(tcadb) in DBA_FIRSTKEY_FUNC() argument
151 tcadbiterinit(dba->tcadb); in DBA_FIRSTKEY_FUNC()
153 value = tcadbiternext(dba->tcadb, &value_size); in DBA_FIRSTKEY_FUNC()
162 DBA_NEXTKEY_FUNC(tcadb) in DBA_NEXTKEY_FUNC() argument
169 value = tcadbiternext(dba->tcadb, &value_size); in DBA_NEXTKEY_FUNC()
178 DBA_OPTIMIZE_FUNC(tcadb) in DBA_OPTIMIZE_FUNC() argument
183 return tcadboptimize(dba->tcadb, NULL) ? SUCCESS : FAILURE; in DBA_OPTIMIZE_FUNC()
189 DBA_SYNC_FUNC(tcadb) in DBA_SYNC_FUNC() argument
193 return tcadbsync(dba->tcadb) ? SUCCESS : FAILURE; in DBA_SYNC_FUNC()
196 DBA_INFO_FUNC(tcadb) in DBA_INFO_FUNC() argument