type result = Cursor of {rows: RNT.tuple list; has_more: bool} | Transition of string