upscaledb  2.2.1
Macros
upscaledb Status Codes

Macros

#define UPS_SUCCESS   ( 0)
 
#define UPS_INV_RECORD_SIZE   ( -2)
 
#define UPS_INV_KEY_SIZE   ( -3)
 
#define UPS_INV_KEYSIZE   UPS_INV_KEY_SIZE
 
#define UPS_INV_PAGE_SIZE   ( -4)
 
#define UPS_INV_PAGESIZE   UPS_INV_PAGE_SIZE
 
#define UPS_OUT_OF_MEMORY   ( -6)
 
#define UPS_INV_PARAMETER   ( -8)
 
#define UPS_INV_FILE_HEADER   ( -9)
 
#define UPS_INV_FILE_VERSION   (-10)
 
#define UPS_KEY_NOT_FOUND   (-11)
 
#define UPS_DUPLICATE_KEY   (-12)
 
#define UPS_INTEGRITY_VIOLATED   (-13)
 
#define UPS_INTERNAL_ERROR   (-14)
 
#define UPS_WRITE_PROTECTED   (-15)
 
#define UPS_BLOB_NOT_FOUND   (-16)
 
#define UPS_IO_ERROR   (-18)
 
#define UPS_NOT_IMPLEMENTED   (-20)
 
#define UPS_FILE_NOT_FOUND   (-21)
 
#define UPS_WOULD_BLOCK   (-22)
 
#define UPS_NOT_READY   (-23)
 
#define UPS_LIMITS_REACHED   (-24)
 
#define UPS_ALREADY_INITIALIZED   (-27)
 
#define UPS_NEED_RECOVERY   (-28)
 
#define UPS_CURSOR_STILL_OPEN   (-29)
 
#define UPS_FILTER_NOT_FOUND   (-30)
 
#define UPS_TXN_CONFLICT   (-31)
 
#define UPS_KEY_ERASED_IN_TXN   (-32)
 
#define UPS_TXN_STILL_OPEN   (-33)
 
#define UPS_CURSOR_IS_NIL   (-100)
 
#define UPS_DATABASE_NOT_FOUND   (-200)
 
#define UPS_DATABASE_ALREADY_EXISTS   (-201)
 
#define UPS_DATABASE_ALREADY_OPEN   (-202)
 
#define UPS_ENVIRONMENT_ALREADY_OPEN   (-203)
 
#define UPS_LOG_INV_FILE_HEADER   (-300)
 
#define UPS_NETWORK_ERROR   (-400)
 
#define UPS_PLUGIN_NOT_FOUND   (-500)
 
#define UPS_PARSER_ERROR   (-501)
 
#define UPS_PLUGIN_ALREADY_EXISTS   (-502)
 

Detailed Description

Macro Definition Documentation

#define UPS_ALREADY_INITIALIZED   (-27)

Object was already initialized

Definition at line 385 of file upscaledb.h.

#define UPS_BLOB_NOT_FOUND   (-16)

Database record not found

Definition at line 371 of file upscaledb.h.

#define UPS_CURSOR_IS_NIL   (-100)

Cursor does not point to a valid item

Definition at line 399 of file upscaledb.h.

#define UPS_CURSOR_STILL_OPEN   (-29)

Cursor must be closed prior to Txn abort/commit

Definition at line 389 of file upscaledb.h.

#define UPS_DATABASE_ALREADY_EXISTS   (-201)

Database name already exists

Definition at line 403 of file upscaledb.h.

#define UPS_DATABASE_ALREADY_OPEN   (-202)

Database already open, or: Database handle is already initialized

Definition at line 405 of file upscaledb.h.

#define UPS_DATABASE_NOT_FOUND   (-200)

Database not found

Definition at line 401 of file upscaledb.h.

#define UPS_DUPLICATE_KEY   (-12)

Tried to insert a key which already exists

Definition at line 363 of file upscaledb.h.

Referenced by main().

#define UPS_ENVIRONMENT_ALREADY_OPEN   (-203)

Environment already open, or: Environment handle is already initialized

Definition at line 407 of file upscaledb.h.

#define UPS_FILE_NOT_FOUND   (-21)

File not found

Definition at line 377 of file upscaledb.h.

#define UPS_FILTER_NOT_FOUND   (-30)

Record filter or file filter not found

Definition at line 391 of file upscaledb.h.

#define UPS_INTEGRITY_VIOLATED   (-13)

Internal Database integrity violated

Definition at line 365 of file upscaledb.h.

#define UPS_INTERNAL_ERROR   (-14)

Internal upscaledb error

Definition at line 367 of file upscaledb.h.

#define UPS_INV_FILE_HEADER   ( -9)

Invalid file header

Definition at line 357 of file upscaledb.h.

#define UPS_INV_FILE_VERSION   (-10)

Invalid file version

Definition at line 359 of file upscaledb.h.

#define UPS_INV_KEY_SIZE   ( -3)

Invalid key size

Definition at line 345 of file upscaledb.h.

#define UPS_INV_KEYSIZE   UPS_INV_KEY_SIZE

Definition at line 347 of file upscaledb.h.

#define UPS_INV_PAGE_SIZE   ( -4)

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

Definition at line 349 of file upscaledb.h.

#define UPS_INV_PAGESIZE   UPS_INV_PAGE_SIZE

Definition at line 351 of file upscaledb.h.

#define UPS_INV_PARAMETER   ( -8)

Invalid function parameter

Definition at line 355 of file upscaledb.h.

#define UPS_INV_RECORD_SIZE   ( -2)

Invalid record size

Definition at line 343 of file upscaledb.h.

#define UPS_IO_ERROR   (-18)

Generic file I/O error

Definition at line 373 of file upscaledb.h.

#define UPS_KEY_ERASED_IN_TXN   (-32)

Definition at line 395 of file upscaledb.h.

#define UPS_KEY_NOT_FOUND   (-11)

Key was not found

Definition at line 361 of file upscaledb.h.

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

#define UPS_LIMITS_REACHED   (-24)

Database limits reached

Definition at line 383 of file upscaledb.h.

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

#define UPS_LOG_INV_FILE_HEADER   (-300)

Invalid log file header

Definition at line 409 of file upscaledb.h.

#define UPS_NEED_RECOVERY   (-28)

Database needs recovery

Definition at line 387 of file upscaledb.h.

#define UPS_NETWORK_ERROR   (-400)

Remote I/O error/Network error

Definition at line 411 of file upscaledb.h.

#define UPS_NOT_IMPLEMENTED   (-20)

Function is not yet implemented

Definition at line 375 of file upscaledb.h.

#define UPS_NOT_READY   (-23)

Object was not initialized correctly

Definition at line 381 of file upscaledb.h.

#define UPS_OUT_OF_MEMORY   ( -6)

Memory allocation failed - out of memory

Definition at line 353 of file upscaledb.h.

#define UPS_PARSER_ERROR   (-501)

UQI: failed to parse a query command

Definition at line 415 of file upscaledb.h.

#define UPS_PLUGIN_ALREADY_EXISTS   (-502)

UQI: a plugin with the given name is already registered

Definition at line 417 of file upscaledb.h.

#define UPS_PLUGIN_NOT_FOUND   (-500)

UQI: plugin not found or unable to load

Definition at line 413 of file upscaledb.h.

#define UPS_SUCCESS   ( 0)

Operation completed successfully

Definition at line 341 of file upscaledb.h.

Referenced by main().

#define UPS_TXN_CONFLICT   (-31)

Operation conflicts with another Txn

Definition at line 393 of file upscaledb.h.

#define UPS_TXN_STILL_OPEN   (-33)

Database cannot be closed because it is modified in a Txn

Definition at line 397 of file upscaledb.h.

#define UPS_WOULD_BLOCK   (-22)

Operation would block

Definition at line 379 of file upscaledb.h.

#define UPS_WRITE_PROTECTED   (-15)

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

Definition at line 369 of file upscaledb.h.