Lines Matching refs:dba
76 dba_db2_data *dba = info->dbf; in DBA_CLOSE_FUNC() local
78 if (dba->cursor) in DBA_CLOSE_FUNC()
79 dba->cursor->c_close(dba->cursor); in DBA_CLOSE_FUNC()
80 dba->dbp->close(dba->dbp, 0); in DBA_CLOSE_FUNC()
81 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
86 dba_db2_data *dba = info->dbf; in DBA_FETCH_FUNC() local
93 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_FETCH_FUNC()
102 dba_db2_data *dba = info->dbf; in DBA_UPDATE_FUNC() local
112 if (dba->dbp->put(dba->dbp, NULL, &gkey, &gval, in DBA_UPDATE_FUNC()
121 dba_db2_data *dba = info->dbf; in DBA_EXISTS_FUNC() local
128 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_EXISTS_FUNC()
136 dba_db2_data *dba = info->dbf; in DBA_DELETE_FUNC() local
142 return dba->dbp->del(dba->dbp, NULL, &gkey, 0) ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
147 dba_db2_data *dba = info->dbf; local
149 if (dba->cursor) {
150 dba->cursor->c_close(dba->cursor);
151 dba->cursor = NULL;
155 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor, 0)) {
157 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor)) {
167 dba_db2_data *dba = info->dbf; local
170 if (dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT)
185 dba_db2_data *dba = info->dbf; local
187 return dba->dbp->sync(dba->dbp, 0) ? FAILURE : SUCCESS;