Lines Matching refs:dba
47 flatfile *dba = info->dbf; in DBA_CLOSE_FUNC() local
49 if (dba->nextkey.dptr) { in DBA_CLOSE_FUNC()
50 efree(dba->nextkey.dptr); in DBA_CLOSE_FUNC()
52 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
57 flatfile *dba = info->dbf; in DBA_FETCH_FUNC() local
65 gval = flatfile_fetch(dba, gkey); in DBA_FETCH_FUNC()
75 flatfile *dba = info->dbf; in DBA_UPDATE_FUNC() local
84 switch(flatfile_store(dba, gkey, gval, mode==1 ? FLATFILE_INSERT : FLATFILE_REPLACE)) { in DBA_UPDATE_FUNC()
102 flatfile *dba = info->dbf; in DBA_EXISTS_FUNC() local
108 gval = flatfile_fetch(dba, gkey); in DBA_EXISTS_FUNC()
118 flatfile *dba = info->dbf; in DBA_DELETE_FUNC() local
123 return(flatfile_delete(dba, gkey) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC()
128 flatfile *dba = info->dbf; in DBA_FIRSTKEY_FUNC() local
130 if (dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
131 efree(dba->nextkey.dptr); in DBA_FIRSTKEY_FUNC()
133 dba->nextkey = flatfile_firstkey(dba); in DBA_FIRSTKEY_FUNC()
134 if (dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
135 return zend_string_init(dba->nextkey.dptr, dba->nextkey.dsize, /* persistent */ false); in DBA_FIRSTKEY_FUNC()
142 flatfile *dba = info->dbf; in DBA_NEXTKEY_FUNC() local
144 if (!dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
148 if (dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
149 efree(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
151 dba->nextkey = flatfile_nextkey(dba); in DBA_NEXTKEY_FUNC()
152 if (dba->nextkey.dptr) { in DBA_NEXTKEY_FUNC()
153 return zend_string_init(dba->nextkey.dptr, dba->nextkey.dsize, /* persistent */ false); in DBA_NEXTKEY_FUNC()