hamsterdb to upscaledb migration guide by Christoph Rupp

Posted on Nov 03, 21:12:56 CET 2015

Switching from hamsterdb to upscaledb can be performed with simple search&replace commands.

The new header file is now <ups/upscaledb.h> and the library name is libupscaledb.a (or upscaledb.dll). The API functions, structures and macros were renamed. Previously, they started with “ham_” (or “HAM_”), now they start with “ups_” (and “UPS_”), e.g., “ham_env_create” is now “ups_env_create”.

There are only a few additional changes:

  • The remote URL identifier "ham://" was changed to "ups://"
  • The function ham_set_errhandler was renamed to ups_set_error_handler
  • The flag UPS_FIND_NEAR_MATCH was removed
  • The flag HAM_FIND_EXACT_MATCH was renamed to UPS_FIND_EQ_MATCH
  • The functions ham_db_get_error, ham_is_pro, ham_is_pro_evaluation were removed

Please see the Changelog of upscaledb-2.1.12 for more information.

Latest Posts

May 20, 18:55:21 CET 2016
32bit integer compression algorithms - part 3

Apr 11, 19:12:27 CET 2016
32bit integer compression algorithms - part 2

Mar 22, 18:38:21 CET 2016
Fast range queries in upscaledb

Apr 03, 22:26:51 CET 2016
Release of upscaledb 2.2.0

Mar 08, 21:02:54 CET 2016
32bit integer compression algorithms

Feb 10, 20:12:32 CET 2016
Building an embedded column store database with upscaledb - part 3

Latest Comments