#a "." #b "." #c ": (" d ")"
219 #define MDB_VERFOO(a,b,c,d) MDB_VERSTR(a,b,c,d) 222 #define MDB_VERSION_STRING \ 223 MDB_VERFOO(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH,MDB_VERSION_DATE) 285 #define MDB_FIXEDMAP 0x01 287 #define MDB_NOSUBDIR 0x4000 289 #define MDB_NOSYNC 0x10000 291 #define MDB_RDONLY 0x20000 293 #define MDB_NOMETASYNC 0x40000 295 #define MDB_WRITEMAP 0x80000 297 #define MDB_MAPASYNC 0x100000 299 #define MDB_NOTLS 0x200000 301 #define MDB_NOLOCK 0x400000 303 #define MDB_NORDAHEAD 0x800000 305 #define MDB_NOMEMINIT 0x1000000 312 #define MDB_REVERSEKEY 0x02 314 #define MDB_DUPSORT 0x04 317 #define MDB_INTEGERKEY 0x08 319 #define MDB_DUPFIXED 0x10 321 #define MDB_INTEGERDUP 0x20 323 #define MDB_REVERSEDUP 0x40 325 #define MDB_CREATE 0x40000 332 #define MDB_NOOVERWRITE 0x10 337 #define MDB_NODUPDATA 0x20 339 #define MDB_CURRENT 0x40 343 #define MDB_RESERVE 0x10000 345 #define MDB_APPEND 0x20000 347 #define MDB_APPENDDUP 0x40000 349 #define MDB_MULTIPLE 0x80000 358 #define MDB_CP_COMPACT 0x01 403 #define MDB_SUCCESS 0 405 #define MDB_KEYEXIST (-30799) 407 #define MDB_NOTFOUND (-30798) 409 #define MDB_PAGE_NOTFOUND (-30797) 411 #define MDB_CORRUPTED (-30796) 413 #define MDB_PANIC (-30795) 415 #define MDB_VERSION_MISMATCH (-30794) 417 #define MDB_INVALID (-30793) 419 #define MDB_MAP_FULL (-30792) 421 #define MDB_DBS_FULL (-30791) 423 #define MDB_READERS_FULL (-30790) 425 #define MDB_TLS_FULL (-30789) 427 #define MDB_TXN_FULL (-30788) 429 #define MDB_CURSOR_FULL (-30787) 431 #define MDB_PAGE_FULL (-30786) 433 #define MDB_MAP_RESIZED (-30785) 442 #define MDB_INCOMPATIBLE (-30784) 444 #define MDB_BAD_RSLOT (-30783) 446 #define MDB_BAD_TXN (-30782) 448 #define MDB_BAD_VALSIZE (-30781) 450 #define MDB_BAD_DBI (-30780) 452 #define MDB_LAST_ERRCODE MDB_BAD_DBI 483 char*
mdb_version(
int*major,
int*minor,
int*patch);
1056 #define mdb_open(txn,name,flags,dbi) mdb_dbi_open(txn,name,flags,dbi) 1058 #define mdb_close(env,dbi) mdb_dbi_close(env,dbi) 1338 unsigned int flags);
1508 unsigned int flags);
struct MDB_stat MDB_stat
Statistics for a database in the environment.
void mdb_txn_reset(MDB_txn *txn)
Reset a read-only transaction.
int() MDB_msg_func(const char *msg, void *ctx)
A callback function used to print a message from the library.
unsigned int
A callback function used to compare two keys in a database.
int mdb_env_info(MDB_env *env, MDB_envinfo *stat)
Return information about the LMDB environment.
int mdb_cursor_put(MDB_cursor *cursor, MDB_val *key, MDB_val *data, unsigned int flags)
Store by cursor.
int mdb_cursor_del(MDB_cursor *cursor, unsigned int flags)
Delete current key/data pair.
int mdb_env_get_flags(MDB_env *env, unsigned int *flags)
Get environment flags.
MDB_dbi mdb_cursor_dbi(MDB_cursor *cursor)
Return the cursor's database handle.
int mdb_env_open(MDB_env *env, const char *path, unsigned int flags, mdb_mode_t mode)
Open an environment handle.
int mdb_reader_check(MDB_env *env, int *dead)
Check for stale entries in the reader lock table.
int mdb_env_copy2(MDB_env *env, const char *path, unsigned int flags)
Copy an LMDB environment to the specified path, with options.
int mdb_cursor_count(MDB_cursor *cursor, size_t *countp)
Return count of duplicates for current key.
void mdb_env_close(MDB_env *env)
Close the environment and release the memory map.
int mdb_env_copyfd(MDB_env *env, mdb_filehandle_t fd)
Copy an LMDB environment to the specified file descriptor.
int mdb_cursor_get(MDB_cursor *cursor, MDB_val *key, MDB_val *data, MDB_cursor_op op)
Retrieve by cursor.
int mdb_put(MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data, unsigned int flags)
Store items into a database.
int mdb_env_copyfd2(MDB_env *env, mdb_filehandle_t fd, unsigned int flags)
Copy an LMDB environment to the specified file descriptor, with options.
void mdb_dbi_close(MDB_env *env, MDB_dbi dbi)
Close a database handle.
struct MDB_envinfo MDB_envinfo
Information about the environment.
int mdb_env_copy(MDB_env *env, const char *path)
Copy an LMDB environment to the specified path.
int mdb_set_compare(MDB_txn *txn, MDB_dbi dbi, MDB_cmp_func *cmp)
Set a custom key comparison function for a database.
int mdb_set_relfunc(MDB_txn *txn, MDB_dbi dbi, MDB_rel_func *rel)
Set a relocation function for a MDB_FIXEDMAP database.
int mdb_txn_renew(MDB_txn *txn)
Renew a read-only transaction.
int mdb_env_set_assert(MDB_env *env, MDB_assert_func *func)
Set or reset the assert() callback of the environment.
void * mdb_env_get_userctx(MDB_env *env)
Get the application information associated with the MDB_env.
int mdb_env_get_maxreaders(MDB_env *env, unsigned int *readers)
Get the maximum number of threads/reader slots for the environment.
void mdb_txn_abort(MDB_txn *txn)
Abandon all the operations of the transaction instead of saving them.
int mdb_set_relctx(MDB_txn *txn, MDB_dbi dbi, void *ctx)
Set a context pointer for a MDB_FIXEDMAP database's relocation function.
int mdb_env_set_flags(MDB_env *env, unsigned int flags, int onoff)
Set environment flags.
int mdb_txn_commit(MDB_txn *txn)
Commit all the operations of a transaction into the database.
int mdb_reader_list(MDB_env *env, MDB_msg_func *func, void *ctx)
Dump the entries in the reader lock table.
int mdb_env_sync(MDB_env *env, int force)
Flush the data buffers to disk.
int mdb_get(MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data)
Get items from a database.
void MDB_assert_func(MDB_env *env, const char *msg)
A callback function for most LMDB assert() failures, called before printing the message and aborting.
int mdb_dbi_flags(MDB_txn *txn, MDB_dbi dbi, unsigned int *flags)
Retrieve the DB flags for a database handle.
char * mdb_strerror(int err)
Return a string describing a given error code.
int mdb_cursor_open(MDB_txn *txn, MDB_dbi dbi, MDB_cursor **cursor)
Create a cursor handle.
int mdb_env_set_mapsize(MDB_env *env, size_t size)
Set the size of the memory map to use for this environment.
int mdb_env_set_maxdbs(MDB_env *env, MDB_dbi dbs)
Set the maximum number of named databases for the environment.
int mdb_env_create(MDB_env **env)
Create an LMDB environment handle.
int mdb_env_get_maxkeysize(MDB_env *env)
Get the maximum size of keys and MDB_DUPSORT data we can write.
int mdb_del(MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data)
Delete items from a database.
int mdb_drop(MDB_txn *txn, MDB_dbi dbi, int del)
Empty or delete+close a database.
int mdb_cmp(MDB_txn *txn, MDB_dbi dbi, const MDB_val *a, const MDB_val *b)
Compare two data items according to a particular database.
int mdb_dbi_open(MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *dbi)
Open a database in the environment.
int mdb_dcmp(MDB_txn *txn, MDB_dbi dbi, const MDB_val *a, const MDB_val *b)
Compare two data items according to a particular database.
int mdb_env_get_path(MDB_env *env, const char **path)
Return the path that was used in mdb_env_open().
int mdb_cursor_renew(MDB_txn *txn, MDB_cursor *cursor)
Renew a cursor handle.
int mdb_set_dupsort(MDB_txn *txn, MDB_dbi dbi, MDB_cmp_func *cmp)
Set a custom data comparison function for a MDB_DUPSORT database.
void mdb_cursor_close(MDB_cursor *cursor)
Close a cursor handle.
int mdb_txn_begin(MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn **txn)
Create a transaction for use with the environment.
size_t mdb_txn_id(MDB_txn *txn)
Return the transaction's ID.
MDB_cursor_op
Cursor Get operations.
int mdb_env_set_maxreaders(MDB_env *env, unsigned int readers)
Set the maximum number of threads/reader slots for the environment.
int mdb_stat(MDB_txn *txn, MDB_dbi dbi, MDB_stat *stat)
Retrieve statistics for a database.
MDB_txn * mdb_cursor_txn(MDB_cursor *cursor)
Return the cursor's transaction handle.
int mdb_env_get_fd(MDB_env *env, mdb_filehandle_t *fd)
Return the filedescriptor for the given environment.
int mdb_env_set_userctx(MDB_env *env, void *ctx)
Set application information associated with the MDB_env.
int mdb_env_stat(MDB_env *env, MDB_stat *stat)
Return statistics about the LMDB environment.
char * mdb_version(int *major, int *minor, int *patch)
Return the LMDB library version information.
MDB_env * mdb_txn_env(MDB_txn *txn)
Returns the transaction's MDB_env.
@ MDB_NEXT_NODUP
Position at first data item of next key.
@ MDB_PREV_NODUP
Position at last data item of previous key.
@ MDB_FIRST_DUP
Position at first data item of current key.
@ MDB_PREV_MULTIPLE
Position at previous page and return up to a page of duplicate data items.
@ MDB_LAST_DUP
Position at last data item of current key.
@ MDB_SET
Position at specified key.
@ MDB_LAST
Position at last key/data item.
@ MDB_NEXT_DUP
Position at next data item of current key.
@ MDB_GET_BOTH_RANGE
position at key, nearest data.
@ MDB_GET_BOTH
Position at key/data pair.
@ MDB_GET_MULTIPLE
Return up to a page of duplicate data items from current cursor position.
@ MDB_FIRST
Position at first key/data item.
@ MDB_NEXT
Position at next data item.
@ MDB_SET_RANGE
Position at first key greater than or equal to specified key.
@ MDB_NEXT_MULTIPLE
Return up to a page of duplicate data items from next cursor position.
@ MDB_PREV
Position at previous data item.
@ MDB_GET_CURRENT
Return key/data at current cursor position.
@ MDB_SET_KEY
Position at specified key, return key + data.
@ MDB_PREV_DUP
Position at previous data item of current key.
unsigned int me_maxreaders
max reader slots in the environment
size_t ms_entries
Number of data items.
size_t me_mapsize
Size of the data memory map.
size_t me_last_txnid
ID of the last committed transaction.
unsigned int ms_psize
Size of a database page.
void * me_mapaddr
Address of map, if fixed.
size_t mv_size
size of the data item
void * mv_data
address of the data item
unsigned int ms_depth
Depth (height) of the B-tree.
size_t ms_overflow_pages
Number of overflow pages.
size_t ms_leaf_pages
Number of leaf pages.
size_t ms_branch_pages
Number of internal (non-leaf) pages.
unsigned int me_numreaders
max reader slots used in the environment
size_t me_last_pgno
ID of the last used page.
struct MDB_val MDB_val
Generic structure used for passing keys and data in and out of the database.
void() MDB_rel_func(MDB_val *item, void *oldptr, void *newptr, void *relctx)
A callback function used to relocate a position-dependent data item in a fixed-address database.
int() MDB_cmp_func(const MDB_val *a, const MDB_val *b)
A callback function used to compare two keys in a database.
unsigned int MDB_dbi
A handle for an individual database in the DB environment.
const struct ncbi::grid::netcache::search::fields::SIZE size
const struct ncbi::grid::netcache::search::fields::KEY key
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
int mdb_filehandle_t
An abstraction for a file handle.
mode_t mdb_mode_t
Unix permissions for creating files, or dummy definition for Windows.
Cursors are used for all DB operations.
The database environment.
Information about the environment.
Statistics for a database in the environment.
Generic structure used for passing keys and data in and out of the database.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4