|
|
@ -432,7 +432,7 @@ int mdb_env_get_path(MDB_env *env, const char **path); |
|
|
|
* The size should be a multiple of the OS page size. The default is |
|
|
|
* The size should be a multiple of the OS page size. The default is |
|
|
|
* 10485760 bytes. The size of the memory map is also the maximum size |
|
|
|
* 10485760 bytes. The size of the memory map is also the maximum size |
|
|
|
* of the database. The value should be chosen as large as possible, |
|
|
|
* of the database. The value should be chosen as large as possible, |
|
|
|
* to accomodate future growth of the database. |
|
|
|
* to accommodate future growth of the database. |
|
|
|
* This function may only be called after #mdb_env_create() and before #mdb_env_open(). |
|
|
|
* This function may only be called after #mdb_env_create() and before #mdb_env_open(). |
|
|
|
* @param[in] env An environment handle returned by #mdb_env_create() |
|
|
|
* @param[in] env An environment handle returned by #mdb_env_create() |
|
|
|
* @param[in] size The size in bytes |
|
|
|
* @param[in] size The size in bytes |
|
|
@ -583,7 +583,7 @@ int mdb_txn_renew(MDB_txn *txn); |
|
|
|
* a read-only transaction. |
|
|
|
* a read-only transaction. |
|
|
|
* @param[in] txn A transaction handle returned by #mdb_txn_begin() |
|
|
|
* @param[in] txn A transaction handle returned by #mdb_txn_begin() |
|
|
|
* @param[in] name The name of the database to open. If only a single |
|
|
|
* @param[in] name The name of the database to open. If only a single |
|
|
|
* database is needed in the enviroment, this value may be NULL. |
|
|
|
* database is needed in the environment, this value may be NULL. |
|
|
|
* @param[in] flags Special options for this database. This parameter |
|
|
|
* @param[in] flags Special options for this database. This parameter |
|
|
|
* must be set to 0 or by bitwise OR'ing together one or more of the |
|
|
|
* must be set to 0 or by bitwise OR'ing together one or more of the |
|
|
|
* values described here. |
|
|
|
* values described here. |
|
|
@ -667,7 +667,7 @@ int mdb_drop(MDB_txn *txn, MDB_dbi dbi, int del); |
|
|
|
* |
|
|
|
* |
|
|
|
* The comparison function is called whenever it is necessary to compare a |
|
|
|
* The comparison function is called whenever it is necessary to compare a |
|
|
|
* key specified by the application with a key currently stored in the database. |
|
|
|
* key specified by the application with a key currently stored in the database. |
|
|
|
* If no comparison function is specified, and no speAGAINcial key flags were specified |
|
|
|
* If no comparison function is specified, and no special key flags were specified |
|
|
|
* with #mdb_open(), the keys are compared lexically, with shorter keys collating |
|
|
|
* with #mdb_open(), the keys are compared lexically, with shorter keys collating |
|
|
|
* before longer keys. |
|
|
|
* before longer keys. |
|
|
|
* @warning This function must be called before any data access functions are used, |
|
|
|
* @warning This function must be called before any data access functions are used, |
|
|
@ -797,7 +797,7 @@ int mdb_get(MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data); |
|
|
|
* @return A non-zero error value on failure and 0 on success. Some possible |
|
|
|
* @return A non-zero error value on failure and 0 on success. Some possible |
|
|
|
* errors are: |
|
|
|
* errors are: |
|
|
|
* <ul> |
|
|
|
* <ul> |
|
|
|
* <li>EACCESS - an attempt was made to write in a read-only transaction. |
|
|
|
* <li>EACCES - an attempt was made to write in a read-only transaction. |
|
|
|
* <li>EINVAL - an invalid parameter was specified. |
|
|
|
* <li>EINVAL - an invalid parameter was specified. |
|
|
|
* <li>ENOMEM - the database is full, see #mdb_env_set_mapsize(). |
|
|
|
* <li>ENOMEM - the database is full, see #mdb_env_set_mapsize(). |
|
|
|
* </ul> |
|
|
|
* </ul> |
|
|
@ -823,7 +823,7 @@ int mdb_put(MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data, |
|
|
|
* @return A non-zero error value on failure and 0 on success. Some possible |
|
|
|
* @return A non-zero error value on failure and 0 on success. Some possible |
|
|
|
* errors are: |
|
|
|
* errors are: |
|
|
|
* <ul> |
|
|
|
* <ul> |
|
|
|
* <li>EACCESS - an attempt was made to write in a read-only transaction. |
|
|
|
* <li>EACCES - an attempt was made to write in a read-only transaction. |
|
|
|
* <li>EINVAL - an invalid parameter was specified. |
|
|
|
* <li>EINVAL - an invalid parameter was specified. |
|
|
|
* </ul> |
|
|
|
* </ul> |
|
|
|
*/ |
|
|
|
*/ |
|
|
|