Re: LMDB cursor position

2024-02-03 Thread Howard Chu
M Gurschi wrote: > Hello Howard, > > Tell me please, after *mdb_cursor_get(key, data, MDB_SET_RANGE)*, if i want > to consume the key, if i understand correctly the key will be updated (on > success). Will the reference to data also be updated or do i need to do: > *mdb_cursor_get(key, data,

Re: LMDB cursor position

2024-02-03 Thread Howard Chu
M Gurschi wrote: > ...in addition, > > Can i rely that for both: > *mdb_cursor_get(key, data, MDB_SET_RANGE)* > and > *mdb_cursor_get(key, data, MDB_NEXT)* > > , if the call returns *MDB_NOTFOUND*, then the key i passed in the call will > be left unmodified? Of course. If the return code is