|
|
@ -802,6 +802,21 @@ int mdb_env_set_maxdbs(MDB_env *env, MDB_dbi dbs); |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
int mdb_env_get_maxkeysize(MDB_env *env); |
|
|
|
int mdb_env_get_maxkeysize(MDB_env *env); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Set application information associated with the #MDB_env.
|
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param[in] env An environment handle returned by #mdb_env_create() |
|
|
|
|
|
|
|
* @param[in] ctx An arbitrary pointer for whatever the application needs. |
|
|
|
|
|
|
|
* @return A non-zero error value on failure and 0 on success. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
int mdb_env_set_userctx(MDB_env *env, void *ctx); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Get the application information associated with the #MDB_env.
|
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param[in] env An environment handle returned by #mdb_env_create() |
|
|
|
|
|
|
|
* @return The pointer set by #mdb_env_set_userctx(). |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
void *mdb_env_get_userctx(MDB_env *env); |
|
|
|
|
|
|
|
|
|
|
|
/** @brief Create a transaction for use with the environment.
|
|
|
|
/** @brief Create a transaction for use with the environment.
|
|
|
|
* |
|
|
|
* |
|
|
|
* The transaction handle may be discarded using #mdb_txn_abort() or #mdb_txn_commit(). |
|
|
|
* The transaction handle may be discarded using #mdb_txn_abort() or #mdb_txn_commit(). |
|
|
|