These docs are for v1.3.0. Click to read the latest docs for v1.6.

db_previous_i64

Get the previous record before the given iterator from a primary 64-bit integer index table.

Get the previous record before the given iterator from a primary 64-bit integer index table

Parameters

  • iterator - The iterator to the record
  • primary - It will be replaced with the primary key of the previous record

Returns

iterator to the previous record

Precondition

iterator is pointing to the existing data inside the table

Post Condition

primary will be replaced with the primary key of the data preceeding the data pointed by the iterator

Example:

uint64_t prim = 123;
int itr_prev = db_previous_i64(itr, &prim);