lib/generated_bindings library

Classes

fd_set
imaxdiv_t
MDB_cursor
MDB_cursor_op
@brief Cursor Get operations.
MDB_env
MDB_envinfo
@brief Information about the environment
MDB_stat
@brief Statistics for a database in the environment
MDB_txn
MDB_val
@brief Generic structure used for passing keys and data in and out of the database.

Constants

ARG_MAX → const int
BC_BASE_MAX → const int
BC_DIM_MAX → const int
BC_SCALE_MAX → const int
BC_STRING_MAX → const int
BIG_ENDIAN → const int
BYTE_ORDER → const int
CHAR_BIT → const int
CHAR_MAX → const int
CHAR_MIN → const int
CHARCLASS_NAME_MAX → const int
CHILD_MAX → const int
CLK_TCK → const int
COLL_WEIGHTS_MAX → const int
EQUIV_CLASS_MAX → const int
EXPR_NEST_MAX → const int
FD_SETSIZE → const int
GID_MAX → const int
INT16_MAX → const int
INT16_MIN → const int
INT32_MAX → const int
INT32_MIN → const int
INT64_MAX → const int
INT64_MIN → const int
INT8_MAX → const int
INT8_MIN → const int
INT_FAST16_MAX → const int
INT_FAST16_MIN → const int
INT_FAST32_MAX → const int
INT_FAST32_MIN → const int
INT_FAST64_MAX → const int
INT_FAST64_MIN → const int
INT_FAST8_MAX → const int
INT_FAST8_MIN → const int
INT_LEAST16_MAX → const int
INT_LEAST16_MIN → const int
INT_LEAST32_MAX → const int
INT_LEAST32_MIN → const int
INT_LEAST64_MAX → const int
INT_LEAST64_MIN → const int
INT_LEAST8_MAX → const int
INT_LEAST8_MIN → const int
INT_MAX → const int
INT_MIN → const int
INTMAX_MAX → const int
INTMAX_MIN → const int
INTPTR_MAX → const int
INTPTR_MIN → const int
IOV_MAX → const int
LINE_MAX → const int
LITTLE_ENDIAN → const int
LLONG_MAX → const int
LLONG_MIN → const int
LONG_BIT → const int
LONG_MAX → const int
LONG_MIN → const int
MAC_OS_VERSION_11_0 → const int
MAC_OS_VERSION_12_0 → const int
MAC_OS_VERSION_13_0 → const int
MAC_OS_X_VERSION_10_0 → const int
MAC_OS_X_VERSION_10_1 → const int
MAC_OS_X_VERSION_10_10 → const int
MAC_OS_X_VERSION_10_10_2 → const int
MAC_OS_X_VERSION_10_10_3 → const int
MAC_OS_X_VERSION_10_11 → const int
MAC_OS_X_VERSION_10_11_2 → const int
MAC_OS_X_VERSION_10_11_3 → const int
MAC_OS_X_VERSION_10_11_4 → const int
MAC_OS_X_VERSION_10_12 → const int
MAC_OS_X_VERSION_10_12_1 → const int
MAC_OS_X_VERSION_10_12_2 → const int
MAC_OS_X_VERSION_10_12_4 → const int
MAC_OS_X_VERSION_10_13 → const int
MAC_OS_X_VERSION_10_13_1 → const int
MAC_OS_X_VERSION_10_13_2 → const int
MAC_OS_X_VERSION_10_13_4 → const int
MAC_OS_X_VERSION_10_14 → const int
MAC_OS_X_VERSION_10_14_1 → const int
MAC_OS_X_VERSION_10_14_4 → const int
MAC_OS_X_VERSION_10_14_6 → const int
MAC_OS_X_VERSION_10_15 → const int
MAC_OS_X_VERSION_10_15_1 → const int
MAC_OS_X_VERSION_10_16 → const int
MAC_OS_X_VERSION_10_2 → const int
MAC_OS_X_VERSION_10_3 → const int
MAC_OS_X_VERSION_10_4 → const int
MAC_OS_X_VERSION_10_5 → const int
MAC_OS_X_VERSION_10_6 → const int
MAC_OS_X_VERSION_10_7 → const int
MAC_OS_X_VERSION_10_8 → const int
MAC_OS_X_VERSION_10_9 → const int
MAX_CANON → const int
MAX_INPUT → const int
MB_LEN_MAX → const int
MDB_APPEND → const int
MDB_APPENDDUP → const int
MDB_BAD_DBI → const int
MDB_BAD_RSLOT → const int
MDB_BAD_TXN → const int
MDB_BAD_VALSIZE → const int
MDB_CORRUPTED → const int
MDB_CP_COMPACT → const int
MDB_CREATE → const int
MDB_CURRENT → const int
MDB_CURSOR_FULL → const int
MDB_DBS_FULL → const int
MDB_DUPFIXED → const int
MDB_DUPSORT → const int
MDB_FIXEDMAP → const int
MDB_FMT_Z → const String
MDB_INCOMPATIBLE → const int
MDB_INTEGERDUP → const int
MDB_INTEGERKEY → const int
MDB_INVALID → const int
MDB_KEYEXIST → const int
MDB_LAST_ERRCODE → const int
MDB_MAP_FULL → const int
MDB_MAP_RESIZED → const int
MDB_MAPASYNC → const int
MDB_MULTIPLE → const int
MDB_NODUPDATA → const int
MDB_NOLOCK → const int
MDB_NOMEMINIT → const int
MDB_NOMETASYNC → const int
MDB_NOOVERWRITE → const int
MDB_NORDAHEAD → const int
MDB_NOSUBDIR → const int
MDB_NOSYNC → const int
MDB_NOTFOUND → const int
MDB_NOTLS → const int
MDB_PAGE_FULL → const int
MDB_PAGE_NOTFOUND → const int
MDB_PANIC → const int
MDB_PREVSNAPSHOT → const int
MDB_PROBLEM → const int
MDB_RDONLY → const int
MDB_READERS_FULL → const int
MDB_RESERVE → const int
MDB_REVERSEDUP → const int
MDB_REVERSEKEY → const int
MDB_SIZE_MAX → const int
MDB_SUCCESS → const int
MDB_TLS_FULL → const int
MDB_TXN_FULL → const int
MDB_VERSION_DATE → const String
MDB_VERSION_FULL → const int
MDB_VERSION_MAJOR → const int
MDB_VERSION_MINOR → const int
MDB_VERSION_MISMATCH → const int
MDB_VERSION_PATCH → const int
MDB_VERSION_STRING → const String
MDB_WRITEMAP → const int
NAME_MAX → const int
NBBY → const int
NFDBITS → const int
NGROUPS_MAX → const int
NL_ARGMAX → const int
NL_LANGMAX → const int
NL_MSGMAX → const int
NL_NMAX → const int
NL_SETMAX → const int
NL_TEXTMAX → const int
NZERO → const int
OFF_MAX → const int
OFF_MIN → const int
OPEN_MAX → const int
PASS_MAX → const int
PATH_MAX → const int
PDP_ENDIAN → const int
PIPE_BUF → const int
PRId16 → const String
PRId32 → const String
PRId64 → const String
PRId8 → const String
PRIdFAST16 → const String
PRIdFAST32 → const String
PRIdFAST64 → const String
PRIdFAST8 → const String
PRIdLEAST16 → const String
PRIdLEAST32 → const String
PRIdLEAST64 → const String
PRIdLEAST8 → const String
PRIdMAX → const String
PRIdPTR → const String
PRIi16 → const String
PRIi32 → const String
PRIi64 → const String
PRIi8 → const String
PRIiFAST16 → const String
PRIiFAST32 → const String
PRIiFAST64 → const String
PRIiFAST8 → const String
PRIiLEAST16 → const String
PRIiLEAST32 → const String
PRIiLEAST64 → const String
PRIiLEAST8 → const String
PRIiMAX → const String
PRIiPTR → const String
PRIo16 → const String
PRIo32 → const String
PRIo64 → const String
PRIo8 → const String
PRIoFAST16 → const String
PRIoFAST32 → const String
PRIoFAST64 → const String
PRIoFAST8 → const String
PRIoLEAST16 → const String
PRIoLEAST32 → const String
PRIoLEAST64 → const String
PRIoLEAST8 → const String
PRIoMAX → const String
PRIoPTR → const String
PRIu16 → const String
PRIu32 → const String
PRIu64 → const String
PRIu8 → const String
PRIuFAST16 → const String
PRIuFAST32 → const String
PRIuFAST64 → const String
PRIuFAST8 → const String
PRIuLEAST16 → const String
PRIuLEAST32 → const String
PRIuLEAST64 → const String
PRIuLEAST8 → const String
PRIuMAX → const String
PRIuPTR → const String
PRIx16 → const String
PRIX16 → const String
PRIX32 → const String
PRIx32 → const String
PRIX64 → const String
PRIx64 → const String
PRIx8 → const String
PRIX8 → const String
PRIxFAST16 → const String
PRIXFAST16 → const String
PRIxFAST32 → const String
PRIXFAST32 → const String
PRIXFAST64 → const String
PRIxFAST64 → const String
PRIXFAST8 → const String
PRIxFAST8 → const String
PRIxLEAST16 → const String
PRIXLEAST16 → const String
PRIxLEAST32 → const String
PRIXLEAST32 → const String
PRIxLEAST64 → const String
PRIXLEAST64 → const String
PRIXLEAST8 → const String
PRIxLEAST8 → const String
PRIxMAX → const String
PRIXMAX → const String
PRIxPTR → const String
PRIXPTR → const String
PTHREAD_DESTRUCTOR_ITERATIONS → const int
PTHREAD_KEYS_MAX → const int
PTHREAD_STACK_MIN → const int
PTRDIFF_MAX → const int
PTRDIFF_MIN → const int
QUAD_MAX → const int
QUAD_MIN → const int
RE_DUP_MAX → const int
RSIZE_MAX → const int
SCHAR_MAX → const int
SCHAR_MIN → const int
SCNd16 → const String
SCNd32 → const String
SCNd64 → const String
SCNd8 → const String
SCNdFAST16 → const String
SCNdFAST32 → const String
SCNdFAST64 → const String
SCNdFAST8 → const String
SCNdLEAST16 → const String
SCNdLEAST32 → const String
SCNdLEAST64 → const String
SCNdLEAST8 → const String
SCNdMAX → const String
SCNdPTR → const String
SCNi16 → const String
SCNi32 → const String
SCNi64 → const String
SCNi8 → const String
SCNiFAST16 → const String
SCNiFAST32 → const String
SCNiFAST64 → const String
SCNiFAST8 → const String
SCNiLEAST16 → const String
SCNiLEAST32 → const String
SCNiLEAST64 → const String
SCNiLEAST8 → const String
SCNiMAX → const String
SCNiPTR → const String
SCNo16 → const String
SCNo32 → const String
SCNo64 → const String
SCNo8 → const String
SCNoFAST16 → const String
SCNoFAST32 → const String
SCNoFAST64 → const String
SCNoFAST8 → const String
SCNoLEAST16 → const String
SCNoLEAST32 → const String
SCNoLEAST64 → const String
SCNoLEAST8 → const String
SCNoMAX → const String
SCNoPTR → const String
SCNu16 → const String
SCNu32 → const String
SCNu64 → const String
SCNu8 → const String
SCNuFAST16 → const String
SCNuFAST32 → const String
SCNuFAST64 → const String
SCNuFAST8 → const String
SCNuLEAST16 → const String
SCNuLEAST32 → const String
SCNuLEAST64 → const String
SCNuLEAST8 → const String
SCNuMAX → const String
SCNuPTR → const String
SCNx16 → const String
SCNx32 → const String
SCNx64 → const String
SCNx8 → const String
SCNxFAST16 → const String
SCNxFAST32 → const String
SCNxFAST64 → const String
SCNxFAST8 → const String
SCNxLEAST16 → const String
SCNxLEAST32 → const String
SCNxLEAST64 → const String
SCNxLEAST8 → const String
SCNxMAX → const String
SCNxPTR → const String
SHRT_MAX → const int
SHRT_MIN → const int
SIG_ATOMIC_MAX → const int
SIG_ATOMIC_MIN → const int
SIZE_MAX → const int
SIZE_T_MAX → const int
SSIZE_MAX → const int
UCHAR_MAX → const int
UID_MAX → const int
UINT16_MAX → const int
UINT32_MAX → const int
UINT64_MAX → const int
UINT8_MAX → const int
UINT_FAST16_MAX → const int
UINT_FAST32_MAX → const int
UINT_FAST64_MAX → const int
UINT_FAST8_MAX → const int
UINT_LEAST16_MAX → const int
UINT_LEAST32_MAX → const int
UINT_LEAST64_MAX → const int
UINT_LEAST8_MAX → const int
UINT_MAX → const int
UINTMAX_MAX → const int
UINTPTR_MAX → const int
ULLONG_MAX → const int
ULONG_MAX → const int
UQUAD_MAX → const int
USHRT_MAX → const int
WCHAR_MAX → const int
WCHAR_MIN → const int
WINT_MAX → const int
WINT_MIN → const int
WORD_BIT → const int

Functions

imaxabs(int j) int
imaxdiv(int __numer, int __denom) imaxdiv_t
mdb_cmp(Pointer<MDB_txn> txn, int dbi, Pointer<MDB_val> a, Pointer<MDB_val> b) int
@brief Compare two data items according to a particular database.
mdb_cursor_close(Pointer<MDB_cursor> cursor) → void
@brief Close a cursor handle.
mdb_cursor_count(Pointer<MDB_cursor> cursor, Pointer<mdb_size_t> countp) int
@brief Return count of duplicates for current key.
mdb_cursor_dbi(Pointer<MDB_cursor> cursor) int
@brief Return the cursor's database handle.
mdb_cursor_del(Pointer<MDB_cursor> cursor, int flags) int
@brief Delete current key/data pair
mdb_cursor_get(Pointer<MDB_cursor> cursor, Pointer<MDB_val> key, Pointer<MDB_val> data, int op) int
@brief Retrieve by cursor.
mdb_cursor_open(Pointer<MDB_txn> txn, int dbi, Pointer<Pointer<MDB_cursor>> cursor) int
@brief Create a cursor handle.
mdb_cursor_put(Pointer<MDB_cursor> cursor, Pointer<MDB_val> key, Pointer<MDB_val> data, int flags) int
@brief Store by cursor.
mdb_cursor_renew(Pointer<MDB_txn> txn, Pointer<MDB_cursor> cursor) int
@brief Renew a cursor handle.
mdb_cursor_txn(Pointer<MDB_cursor> cursor) Pointer<MDB_txn>
@brief Return the cursor's transaction handle.
mdb_dbi_close(Pointer<MDB_env> env, int dbi) → void
@brief Close a database handle. Normally unnecessary. Use with care:
mdb_dbi_flags(Pointer<MDB_txn> txn, int dbi, Pointer<UnsignedInt> flags) int
@brief Retrieve the DB flags for a database handle.
mdb_dbi_open(Pointer<MDB_txn> txn, Pointer<Char> name, int flags, Pointer<MDB_dbi> dbi) int
@brief Open a database in the environment.
mdb_dcmp(Pointer<MDB_txn> txn, int dbi, Pointer<MDB_val> a, Pointer<MDB_val> b) int
@brief Compare two data items according to a particular database.
mdb_del(Pointer<MDB_txn> txn, int dbi, Pointer<MDB_val> key, Pointer<MDB_val> data) int
@brief Delete items from a database.
mdb_drop(Pointer<MDB_txn> txn, int dbi, int del) int
@brief Empty or delete+close a database.
mdb_env_close(Pointer<MDB_env> env) → void
@brief Close the environment and release the memory map.
mdb_env_copy(Pointer<MDB_env> env, Pointer<Char> path) int
@brief Copy an LMDB environment to the specified path.
mdb_env_copy2(Pointer<MDB_env> env, Pointer<Char> path, int flags) int
@brief Copy an LMDB environment to the specified path, with options.
mdb_env_copyfd(Pointer<MDB_env> env, int fd) int
@brief Copy an LMDB environment to the specified file descriptor.
mdb_env_copyfd2(Pointer<MDB_env> env, int fd, int flags) int
@brief Copy an LMDB environment to the specified file descriptor, with options.
mdb_env_create(Pointer<Pointer<MDB_env>> env) int
@brief Create an LMDB environment handle.
mdb_env_get_fd(Pointer<MDB_env> env, Pointer<mdb_filehandle_t> fd) int
@brief Return the filedescriptor for the given environment.
mdb_env_get_flags(Pointer<MDB_env> env, Pointer<UnsignedInt> flags) int
@brief Get environment flags.
mdb_env_get_maxkeysize(Pointer<MDB_env> env) int
@brief Get the maximum size of keys and #MDB_DUPSORT data we can write.
mdb_env_get_maxreaders(Pointer<MDB_env> env, Pointer<UnsignedInt> readers) int
@brief Get the maximum number of threads/reader slots for the environment.
mdb_env_get_path(Pointer<MDB_env> env, Pointer<Pointer<Char>> path) int
@brief Return the path that was used in #mdb_env_open().
mdb_env_get_userctx(Pointer<MDB_env> env) Pointer<Void>
@brief Get the application information associated with the #MDB_env.
mdb_env_info(Pointer<MDB_env> env, Pointer<MDB_envinfo> stat) int
@brief Return information about the LMDB environment.
mdb_env_open(Pointer<MDB_env> env, Pointer<Char> path, int flags, int mode) int
@brief Open an environment handle.
mdb_env_set_assert(Pointer<MDB_env> env, Pointer<MDB_assert_func> func) int
Set or reset the assert() callback of the environment. Disabled if liblmdb is built with NDEBUG. @note This hack should become obsolete as lmdb's error handling matures. @paramin env An environment handle returned by #mdb_env_create(). @paramin func An #MDB_assert_func function, or 0. @return A non-zero error value on failure and 0 on success.
mdb_env_set_flags(Pointer<MDB_env> env, int flags, int onoff) int
@brief Set environment flags.
mdb_env_set_mapsize(Pointer<MDB_env> env, int size) int
@brief Set the size of the memory map to use for this environment.
mdb_env_set_maxdbs(Pointer<MDB_env> env, int dbs) int
@brief Set the maximum number of named databases for the environment.
mdb_env_set_maxreaders(Pointer<MDB_env> env, int readers) int
@brief Set the maximum number of threads/reader slots for the environment.
mdb_env_set_userctx(Pointer<MDB_env> env, Pointer<Void> ctx) int
@brief Set application information associated with the #MDB_env.
mdb_env_stat(Pointer<MDB_env> env, Pointer<MDB_stat> stat) int
@brief Return statistics about the LMDB environment.
mdb_env_sync(Pointer<MDB_env> env, int force) int
@brief Flush the data buffers to disk.
mdb_get(Pointer<MDB_txn> txn, int dbi, Pointer<MDB_val> key, Pointer<MDB_val> data) int
@brief Get items from a database.
mdb_put(Pointer<MDB_txn> txn, int dbi, Pointer<MDB_val> key, Pointer<MDB_val> data, int flags) int
@brief Store items into a database.
mdb_reader_check(Pointer<MDB_env> env, Pointer<Int> dead) int
@brief Check for stale entries in the reader lock table.
mdb_reader_list(Pointer<MDB_env> env, Pointer<MDB_msg_func> func, Pointer<Void> ctx) int
@brief Dump the entries in the reader lock table.
mdb_set_compare(Pointer<MDB_txn> txn, int dbi, Pointer<MDB_cmp_func> cmp) int
@brief Set a custom key comparison function for a database.
mdb_set_dupsort(Pointer<MDB_txn> txn, int dbi, Pointer<MDB_cmp_func> cmp) int
@brief Set a custom data comparison function for a #MDB_DUPSORT database.
mdb_set_relctx(Pointer<MDB_txn> txn, int dbi, Pointer<Void> ctx) int
@brief Set a context pointer for a #MDB_FIXEDMAP database's relocation function.
mdb_set_relfunc(Pointer<MDB_txn> txn, int dbi, Pointer<MDB_rel_func> rel) int
@brief Set a relocation function for a #MDB_FIXEDMAP database.
mdb_stat(Pointer<MDB_txn> txn, int dbi, Pointer<MDB_stat> stat) int
@brief Retrieve statistics for a database.
mdb_strerror(int err) Pointer<Char>
@brief Return a string describing a given error code.
mdb_txn_abort(Pointer<MDB_txn> txn) → void
@brief Abandon all the operations of the transaction instead of saving them.
mdb_txn_begin(Pointer<MDB_env> env, Pointer<MDB_txn> parent, int flags, Pointer<Pointer<MDB_txn>> txn) int
@brief Create a transaction for use with the environment.
mdb_txn_commit(Pointer<MDB_txn> txn) int
@brief Commit all the operations of a transaction into the database.
mdb_txn_env(Pointer<MDB_txn> txn) Pointer<MDB_env>
@brief Returns the transaction's #MDB_env
mdb_txn_id(Pointer<MDB_txn> txn) int
@brief Return the transaction's ID.
mdb_txn_renew(Pointer<MDB_txn> txn) int
@brief Renew a read-only transaction.
mdb_txn_reset(Pointer<MDB_txn> txn) → void
@brief Reset a read-only transaction.
mdb_version(Pointer<Int> major, Pointer<Int> minor, Pointer<Int> patch) Pointer<Char>
@brief Return the LMDB library version information.
strtoimax(Pointer<Char> __nptr, Pointer<Pointer<Char>> __endptr, int __base) int
strtoumax(Pointer<Char> __nptr, Pointer<Pointer<Char>> __endptr, int __base) int
wcstoimax(Pointer<WChar> __nptr, Pointer<Pointer<WChar>> __endptr, int __base) int
wcstoumax(Pointer<WChar> __nptr, Pointer<Pointer<WChar>> __endptr, int __base) int

Typedefs

intmax_t = Long
MDB_assert_func = NativeFunction<Void Function(Pointer<MDB_env> env, Pointer<Char> msg)>
@brief A callback function for most LMDB assert() failures, called before printing the message and aborting.
MDB_cmp_func = NativeFunction<Int Function(Pointer<MDB_val> a, Pointer<MDB_val> b)>
@brief A callback function used to compare two keys in a database
MDB_dbi = UnsignedInt
@brief A handle for an individual database in the DB environment.
mdb_filehandle_t = Int
mdb_mode_t = mode_t
MDB_msg_func = NativeFunction<Int Function(Pointer<Char> msg, Pointer<Void> ctx)>
@brief A callback function used to print a message from the library.
MDB_rel_func = NativeFunction<Void Function(Pointer<MDB_val> item, Pointer<Void> oldptr, Pointer<Void> newptr, Pointer<Void> relctx)>
@brief A callback function used to relocate a position-dependent data item in a fixed-address database.
mdb_size_t = Size
Unsigned type used for mapsize, entry counts and page/transaction IDs.
mode_t = __darwin_mode_t
uintmax_t = UnsignedLong