Remote / foldkit-remote-drizzle
readCursor
function · packages/remote-drizzle/src/cursor.ts:338
function readCursor(cursor: string, terms: number): CursorReadWhat a cursor says: the key values a keyed one holds, checked against the
order it pages (a client sends it, so nothing is trusted that is not one of
these values), the id an idCursor names, or the id of a cursor from before
keys. A cursor from before keys is a bare id, which may itself begin k::
one that does is read here as keyed (or refused), so a source asks first
whether a row has the whole cursor as its id.