rdf_hash_db.c 990 B

123456789101112131415161718192021222324
  1. #define db_DELETE(db, key, flags) ((db->dbp)->del)(db->dbp, TXN &key, flag
  2. s)
  3. #define db_STORE(db, key, value, flags) ((db->dbp)->put)(db->dbp, TXN &key, &val
  4. ue, flags)
  5. #define db_FETCH(db, key, flags) ((db->dbp)->get)(db->dbp, TXN &key, &val
  6. ue, flags)
  7. #define db_sync(db, flags) ((db->dbp)->sync)(db->dbp, flags)
  8. #define db_get(db, key, value, flags) ((db->dbp)->get)(db->dbp, TXN &key, &val
  9. ue, flags)
  10. #ifdef DB_VERSION_MAJOR
  11. #define db_DESTROY(db) ( db->cursor->c_close(db->cursor),\
  12. (db->dbp->close)(db->dbp, 0) )
  13. #define db_close(db) ((db->dbp)->close)(db->dbp, 0)
  14. #define db_del(db, key, flags) (flagSet(flags, R_CURSOR)
  15. \
  16. ? ((db->cursor)->c_del)(db->curs
  17. or, 0) \
  18. : ((db->dbp)->del)(db->dbp, NULL
  19. , &key, flags) )
  20. put