LMDB cursor position

2024-02-01 Thread M Gurschi
Hello team, Can you please let me know, when using *mdb_cursor_get* with *MDB_SET* operation, in case the key is not present in the db, where is the cursor left pointing? My scenario is that i want to retrieve two adjacent keys. 1. first *mdb_cursor_get* with *MDB_SET* 2. after that,

Re: LMDB cursor position

2024-02-01 Thread M Gurschi
Understood, thank you! Kind Regards, Maxim Gurschi On 1 Feb 2024, at 17:53, Howard Chu wrote: M Gurschi wrote: > Hello team, > > Can you please let me know, when using *mdb_cursor_get* with *MDB_SET* > operation, in case the key is not present in the db, where is the cursor left

Re: LMDB cursor position

2024-02-02 Thread M Gurschi
...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? Kind Regards, Maxim Gurschi On 2 Feb 2024, at 11:23, M Gurschi wrote

Re: LMDB cursor position

2024-02-02 Thread M Gurschi
to point at the data from the key? Kind Regards, Maxim Gurschi On 1 Feb 2024, at 20:21, M Gurschi wrote: Understood, thank you! Kind Regards, Maxim Gurschi On 1 Feb 2024, at 17:53, Howard Chu wrote: M Gurschi wrote: > Hello team, > > Can you please let me know, when using *mdb_c

Re: LMDB cursor position

2024-02-05 Thread M Gurschi
Cheers Howard! Kind Regards, Maxim Gurschi On 3 Feb 2024, at 16:30, Howard Chu wrote: 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 (o