Navigates and retrieves key-values records.
By default, the cursor is pointing to the first record in the database.
new (database:Database)
find (key:Bytes):Option<Bytes>
Navigates to the nearest key that is equal or less to the given key and returns that key.
first ():Bytes
Navigates to the first key in the database and returns that key.
get (key:Bytes):Option<Bytes>
Navigates to the given key and returns it if it exists.
key ():Bytes
Returns the key of the current record.
last ():Bytes
Navigates to the last key in the database and returns that key.
next ():Option<Bytes>
Navigates the next key and returns it.
previous ():Option<Bytes>
Navigates to the previous key and returns it.
value ():Bytes
Returns the value of the current record.