upscaledb
2.2.1
|
Include file for upscaledb embedded database. More...
#include <ups/types.h>
Go to the source code of this file.
Data Structures | |
struct | ups_record_t |
struct | ups_key_t |
struct | ups_parameter_t |
Typedefs | |
typedef struct ups_db_t | ups_db_t |
typedef struct ups_env_t | ups_env_t |
typedef struct ups_cursor_t | ups_cursor_t |
typedef void UPS_CALLCONV(* | ups_error_handler_fun) (int level, const char *message) |
typedef struct ups_txn_t | ups_txn_t |
typedef int UPS_CALLCONV(* | ups_compare_func_t) (ups_db_t *db, const uint8_t *lhs, uint32_t lhs_length, const uint8_t *rhs, uint32_t rhs_length) |
#define UPS_API_REVISION 4 |
Definition at line 121 of file upscaledb.h.
#define UPS_FILE_VERSION 5 |
Definition at line 147 of file upscaledb.h.
#define UPS_KEY_USER_ALLOC 1 |
Flag for ups_key_t (only really useful in combination with ups_cursor_move, ups_cursor_find and ups_db_find)
Definition at line 279 of file upscaledb.h.
Referenced by main().
#define ups_make_key | ( | PTR, | |
SIZE | |||
) | { SIZE, PTR, 0, 0 } |
A macro to statically initialize a ups_key_t structure.
Usage: ups_key_t key = ups_make_key(ptr, size);
Definition at line 274 of file upscaledb.h.
#define ups_make_record | ( | PTR, | |
SIZE | |||
) | { SIZE, PTR, 0 } |
A macro to statically initialize a ups_record_t structure.
Usage: ups_record_t rec = ups_make_record(ptr, size);
Definition at line 225 of file upscaledb.h.
Referenced by main().
#define UPS_RECORD_USER_ALLOC 1 |
Flag for ups_record_t (only really useful in combination with ups_cursor_move, ups_cursor_find and ups_db_find)
Definition at line 217 of file upscaledb.h.
#define UPS_VERSION_MAJ 2 |
The version numbers
The minor version means a significant update without API changes, and the revision is incremented for each release with minor improvements only.
The file version describes the version of the binary database format. upscaledb is neither backwards- nor forwards-compatible regarding file format changes.
History of file versions: 2.1.0: introduced the file version; version is 0 2.1.3: new btree format, file format cleanups; version is 1 2.1.4: new btree format for duplicate keys/var. length keys; version is 2 2.1.5: new freelist; version is 3 2.1.9: changes in btree node format; version is 4 2.1.13: changes in btree node format; version is 5
Definition at line 144 of file upscaledb.h.
#define UPS_VERSION_MIN 2 |
Definition at line 145 of file upscaledb.h.
#define UPS_VERSION_REV 1 |
Definition at line 146 of file upscaledb.h.
typedef struct ups_cursor_t ups_cursor_t |
Definition at line 177 of file upscaledb.h.
Definition at line 156 of file upscaledb.h.
Definition at line 165 of file upscaledb.h.