mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-31 11:28:21 +08:00
mdbx-doc: clarify mdbx_del() and mdbx_cursor_del() description.
Related to https://github.com/erthink/libmdbx/issues/109. Change-Id: I810597f8a1217db3a16cc7c3de3822218ab7d055
This commit is contained in:
parent
97b4679ca8
commit
44be200e28
7
mdbx.h
7
mdbx.h
@ -2973,7 +2973,8 @@ LIBMDBX_API int mdbx_replace(MDBX_txn *txn, MDBX_dbi dbi, const MDBX_val *key,
|
|||||||
*
|
*
|
||||||
* NOTE: The data parameter is NOT ignored regardless the database does
|
* NOTE: The data parameter is NOT ignored regardless the database does
|
||||||
* support sorted duplicate data items or not. If the data parameter
|
* support sorted duplicate data items or not. If the data parameter
|
||||||
* is non-NULL only the matching data item will be deleted.
|
* is non-NULL only the matching data item will be deleted. Otherwise, if data
|
||||||
|
* parameter is NULL, any/all value(s) for specified key will be deleted.
|
||||||
*
|
*
|
||||||
* This function will return MDBX_NOTFOUND if the specified key/data
|
* This function will return MDBX_NOTFOUND if the specified key/data
|
||||||
* pair is not in the database.
|
* pair is not in the database.
|
||||||
@ -3160,8 +3161,8 @@ LIBMDBX_API int mdbx_cursor_put(MDBX_cursor *cursor, const MDBX_val *key,
|
|||||||
* or one of the values described here.
|
* or one of the values described here.
|
||||||
*
|
*
|
||||||
* - MDBX_NODUPDATA
|
* - MDBX_NODUPDATA
|
||||||
* Delete all of the data items for the current key. This flag may only
|
* Delete all of the data items for the current key. This flag has effect
|
||||||
* be specified if the database was opened with MDBX_DUPSORT.
|
* only for database(s) was created with MDBX_DUPSORT.
|
||||||
*
|
*
|
||||||
* Returns A non-zero error value on failure and 0 on success, some
|
* Returns A non-zero error value on failure and 0 on success, some
|
||||||
* possible errors are:
|
* possible errors are:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user