hamsterdb Embedded Database  2.1.1
Defines
hamsterdb Status Codes

Defines

#define HAM_SUCCESS   ( 0)
#define HAM_INV_KEYSIZE   ( -3)
#define HAM_INV_PAGESIZE   ( -4)
#define HAM_OUT_OF_MEMORY   ( -6)
#define HAM_INV_PARAMETER   ( -8)
#define HAM_INV_FILE_HEADER   ( -9)
#define HAM_INV_FILE_VERSION   (-10)
#define HAM_KEY_NOT_FOUND   (-11)
#define HAM_DUPLICATE_KEY   (-12)
#define HAM_INTEGRITY_VIOLATED   (-13)
#define HAM_INTERNAL_ERROR   (-14)
#define HAM_WRITE_PROTECTED   (-15)
#define HAM_BLOB_NOT_FOUND   (-16)
#define HAM_PREFIX_REQUEST_FULLKEY   (-17)
#define HAM_IO_ERROR   (-18)
#define HAM_CACHE_FULL   (-19)
#define HAM_NOT_IMPLEMENTED   (-20)
#define HAM_FILE_NOT_FOUND   (-21)
#define HAM_WOULD_BLOCK   (-22)
#define HAM_NOT_READY   (-23)
#define HAM_LIMITS_REACHED   (-24)
#define HAM_ALREADY_INITIALIZED   (-27)
#define HAM_NEED_RECOVERY   (-28)
#define HAM_CURSOR_STILL_OPEN   (-29)
#define HAM_FILTER_NOT_FOUND   (-30)
#define HAM_TXN_CONFLICT   (-31)
#define HAM_KEY_ERASED_IN_TXN   (-32)
#define HAM_TXN_STILL_OPEN   (-33)
#define HAM_CURSOR_IS_NIL   (-100)
#define HAM_DATABASE_NOT_FOUND   (-200)
#define HAM_DATABASE_ALREADY_EXISTS   (-201)
#define HAM_DATABASE_ALREADY_OPEN   (-202)
#define HAM_ENVIRONMENT_ALREADY_OPEN   (-203)
#define HAM_LOG_INV_FILE_HEADER   (-300)
#define HAM_NETWORK_ERROR   (-400)

Define Documentation

#define HAM_ALREADY_INITIALIZED   (-27)

Object was already initialized

Definition at line 322 of file hamsterdb.h.

#define HAM_BLOB_NOT_FOUND   (-16)

Database record not found

Definition at line 304 of file hamsterdb.h.

#define HAM_CACHE_FULL   (-19)

Database cache is full

Definition at line 310 of file hamsterdb.h.

#define HAM_CURSOR_IS_NIL   (-100)

Cursor does not point to a valid item

Definition at line 336 of file hamsterdb.h.

#define HAM_CURSOR_STILL_OPEN   (-29)

Cursor must be closed prior to Transaction abort/commit

Definition at line 326 of file hamsterdb.h.

#define HAM_DATABASE_ALREADY_EXISTS   (-201)

Database name already exists

Definition at line 340 of file hamsterdb.h.

#define HAM_DATABASE_ALREADY_OPEN   (-202)

Database already open, or: Database handle is already initialized

Definition at line 342 of file hamsterdb.h.

#define HAM_DATABASE_NOT_FOUND   (-200)

Database not found

Definition at line 338 of file hamsterdb.h.

#define HAM_DUPLICATE_KEY   (-12)

Tried to insert a key which already exists

Definition at line 296 of file hamsterdb.h.

Referenced by main().

#define HAM_ENVIRONMENT_ALREADY_OPEN   (-203)

Environment already open, or: Environment handle is already initialized

Definition at line 344 of file hamsterdb.h.

#define HAM_FILE_NOT_FOUND   (-21)

File not found

Definition at line 314 of file hamsterdb.h.

#define HAM_FILTER_NOT_FOUND   (-30)

Record filter or file filter not found

Definition at line 328 of file hamsterdb.h.

#define HAM_INTEGRITY_VIOLATED   (-13)

Internal Database integrity violated

Definition at line 298 of file hamsterdb.h.

#define HAM_INTERNAL_ERROR   (-14)

Internal hamsterdb error

Definition at line 300 of file hamsterdb.h.

#define HAM_INV_FILE_HEADER   ( -9)

Invalid file header

Definition at line 290 of file hamsterdb.h.

#define HAM_INV_FILE_VERSION   (-10)

Invalid file version

Definition at line 292 of file hamsterdb.h.

#define HAM_INV_KEYSIZE   ( -3)

Invalid key size

Definition at line 282 of file hamsterdb.h.

Referenced by hamsterdb::key::key().

#define HAM_INV_PAGESIZE   ( -4)

Invalid page size (must be 1024 or a multiple of 2048)

Definition at line 284 of file hamsterdb.h.

#define HAM_INV_PARAMETER   ( -8)

Invalid function parameter

Definition at line 288 of file hamsterdb.h.

#define HAM_IO_ERROR   (-18)

Generic file I/O error

Definition at line 308 of file hamsterdb.h.

#define HAM_KEY_ERASED_IN_TXN   (-32)

Definition at line 332 of file hamsterdb.h.

#define HAM_KEY_NOT_FOUND   (-11)

Key was not found

Definition at line 294 of file hamsterdb.h.

Referenced by copy_db(), main(), and run_demo().

#define HAM_LIMITS_REACHED   (-24)

Database limits reached

Definition at line 320 of file hamsterdb.h.

Referenced by hamsterdb::env::get_database_names().

#define HAM_LOG_INV_FILE_HEADER   (-300)

Invalid log file header

Definition at line 346 of file hamsterdb.h.

#define HAM_NEED_RECOVERY   (-28)

Database needs recovery

Definition at line 324 of file hamsterdb.h.

#define HAM_NETWORK_ERROR   (-400)

Remote I/O error/Network error

Definition at line 348 of file hamsterdb.h.

#define HAM_NOT_IMPLEMENTED   (-20)

Function is not yet implemented

Definition at line 312 of file hamsterdb.h.

#define HAM_NOT_READY   (-23)

Object was not initialized correctly

Definition at line 318 of file hamsterdb.h.

#define HAM_OUT_OF_MEMORY   ( -6)

Memory allocation failed - out of memory

Definition at line 286 of file hamsterdb.h.

#define HAM_PREFIX_REQUEST_FULLKEY   (-17)

Prefix comparison function needs more data

Definition at line 306 of file hamsterdb.h.

#define HAM_SUCCESS   ( 0)

Operation completed successfully

Definition at line 280 of file hamsterdb.h.

Referenced by main().

#define HAM_TXN_CONFLICT   (-31)

Operation conflicts with another Transaction

Definition at line 330 of file hamsterdb.h.

#define HAM_TXN_STILL_OPEN   (-33)

Database cannot be closed because it is modified in a Transaction

Definition at line 334 of file hamsterdb.h.

#define HAM_WOULD_BLOCK   (-22)

Operation would block

Definition at line 316 of file hamsterdb.h.

#define HAM_WRITE_PROTECTED   (-15)

Tried to modify the Database, but the file was opened as read-only

Definition at line 302 of file hamsterdb.h.