mdbx: добавление mdbx_cursor_on_first/last_dup() в API.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2023-11-18 02:34:07 +03:00
parent eee3e6eb6b
commit ed59ad22c6
3 changed files with 65 additions and 0 deletions

View File

@@ -4467,6 +4467,8 @@ public:
inline bool eof() const;
inline bool on_first() const;
inline bool on_last() const;
inline bool on_first_multival() const;
inline bool on_last_multival() const;
inline estimate_result estimate(const slice &key, const slice &value) const;
inline estimate_result estimate(const slice &key) const;
inline estimate_result estimate(move_operation operation) const;
@@ -6396,6 +6398,14 @@ inline bool cursor::on_last() const {
return error::boolean_or_throw(::mdbx_cursor_on_last(*this));
}
inline bool cursor::on_first_multival() const {
return error::boolean_or_throw(::mdbx_cursor_on_first_dup(*this));
}
inline bool cursor::on_last_multival() const {
return error::boolean_or_throw(::mdbx_cursor_on_last_dup(*this));
}
inline cursor::estimate_result cursor::estimate(const slice &key,
const slice &value) const {
return estimate_result(*this, multi_exactkey_lowerboundvalue, key, value);