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()
110 gval = flatfile_fetch(dba, gkey TSRMLS_CC); in DBA_EXISTS_FUNC()
122 return(flatfile_delete(dba, gkey TSRMLS_CC) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC()
129 if (dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
130 efree(dba->nextkey.dptr); in DBA_FIRSTKEY_FUNC()
132 dba->nextkey = flatfile_firstkey(dba TSRMLS_CC); in DBA_FIRSTKEY_FUNC()
133 if (dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
135 *newlen = dba->nextkey.dsize; in DBA_FIRSTKEY_FUNC()
137 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_FIRSTKEY_FUNC()
146 if (!dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
150 if (dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
151 efree(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
153 dba->nextkey = flatfile_nextkey(dba TSRMLS_CC); in DBA_NEXTKEY_FUNC()
154 if (dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
156 *newlen = dba->nextkey.dsize; in DBA_NEXTKEY_FUNC()
158 return estrndup(dba->nextkey.dptr, dba->nextkey.dsize); in DBA_NEXTKEY_FUNC()