Lines Matching refs:dba
77 dba_tcadb_data *dba = info->dbf; in DBA_CLOSE_FUNC() local
79 tcadbclose(dba->tcadb); in DBA_CLOSE_FUNC()
80 tcadbdel(dba->tcadb); in DBA_CLOSE_FUNC()
81 pefree(dba, info->flags & DBA_PERSISTENT); in DBA_CLOSE_FUNC()
86 dba_tcadb_data *dba = info->dbf; in DBA_FETCH_FUNC() local
91 value = tcadbget(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), &value_size); in DBA_FETCH_FUNC()
102 dba_tcadb_data *dba = info->dbf; in DBA_UPDATE_FUNC() local
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()
124 dba_tcadb_data *dba = info->dbf; in DBA_EXISTS_FUNC() local
128 value = tcadbget(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key), &value_len); in DBA_EXISTS_FUNC()
139 dba_tcadb_data *dba = info->dbf; in DBA_DELETE_FUNC() local
141 return tcadbout(dba->tcadb, ZSTR_VAL(key), ZSTR_LEN(key)) ? SUCCESS : FAILURE; in DBA_DELETE_FUNC()
146 dba_tcadb_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() local
151 tcadbiterinit(dba->tcadb); in DBA_FIRSTKEY_FUNC()
153 value = tcadbiternext(dba->tcadb, &value_size); in DBA_FIRSTKEY_FUNC()
164 dba_tcadb_data *dba = info->dbf; in DBA_NEXTKEY_FUNC() local
169 value = tcadbiternext(dba->tcadb, &value_size); in DBA_NEXTKEY_FUNC()
180 dba_tcadb_data *dba = info->dbf; in DBA_OPTIMIZE_FUNC() local
183 return tcadboptimize(dba->tcadb, NULL) ? SUCCESS : FAILURE; in DBA_OPTIMIZE_FUNC()
191 dba_tcadb_data *dba = info->dbf; in DBA_SYNC_FUNC() local
193 return tcadbsync(dba->tcadb) ? SUCCESS : FAILURE; in DBA_SYNC_FUNC()