Lines Matching refs:dba
39 #define FLATFILE_DATA flatfile *dba = info->dbf
56 if (dba->nextkey.dptr) { in DBA_CLOSE_FUNC()
57 efree(dba->nextkey.dptr); in DBA_CLOSE_FUNC()
59 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
70 gval = flatfile_fetch(dba, gkey TSRMLS_CC); in DBA_FETCH_FUNC()
90 switch(flatfile_store(dba, gkey, gval, mode==1 ? FLATFILE_INSERT : FLATFILE_REPLACE TSRMLS_CC)) { in DBA_UPDATE_FUNC()
109 gval = flatfile_fetch(dba, gkey TSRMLS_CC); in DBA_EXISTS_FUNC()
121 return(flatfile_delete(dba, gkey TSRMLS_CC) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC()
128 if (dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
129 efree(dba->nextkey.dptr); in DBA_FIRSTKEY_FUNC()
131 dba->nextkey = flatfile_firstkey(dba TSRMLS_CC); in DBA_FIRSTKEY_FUNC()
132 if (dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
134 *newlen = dba->nextkey.dsize; in DBA_FIRSTKEY_FUNC()
136 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_FIRSTKEY_FUNC()
145 if (!dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
149 if (dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
150 efree(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
152 dba->nextkey = flatfile_nextkey(dba TSRMLS_CC); in DBA_NEXTKEY_FUNC()
153 if (dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
155 *newlen = dba->nextkey.dsize; in DBA_NEXTKEY_FUNC()
157 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_NEXTKEY_FUNC()