Lines Matching refs:dba
32 #define DB2_DATA dba_db2_data *dba = info->dbf
88 if (dba->cursor) in DBA_CLOSE_FUNC()
89 dba->cursor->c_close(dba->cursor); in DBA_CLOSE_FUNC()
90 dba->dbp->close(dba->dbp, 0); in DBA_CLOSE_FUNC()
91 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
100 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_FETCH_FUNC()
117 if (dba->dbp->put(dba->dbp, NULL, &gkey, &gval, in DBA_UPDATE_FUNC()
130 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_EXISTS_FUNC()
141 return dba->dbp->del(dba->dbp, NULL, &gkey, 0) ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
148 if (dba->cursor) {
149 dba->cursor->c_close(dba->cursor);
150 dba->cursor = NULL;
154 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor, 0)) {
156 if (dba->dbp->cursor(dba->dbp, NULL, &dba->cursor)) {
170 if (dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT)
187 return dba->dbp->sync(dba->dbp, 0) ? FAILURE : SUCCESS;