You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the previous row doesn't contain the columns of the cursor then it will throw a logic exception.
This would translate to SELECT * FROM x WHERE column1 > $previousRow.column1 OR (column1 = $previousRow.column1 AND (column2 < $previousRow.column2)) ORDER BY column1 ASC, column2 DESC.
Each column is ordered relative to the previous one, this why it needs the complex filtering.
But once again the cursor is a shortcut for orderBy and where.
Note
Instead of having a new cursor method, maybe a new via(callable(Select): Select): Select (similar to Sequence::via() from innmind/immutable) would be better as it allows further composition extraction.
Activity