pub fn encode_cursor_state(db: usize, offset: usize) -> String
Encode pagination cursor {db, offset} as base64 JSON.
{db, offset}