Skip to main content

Module paginate_multi_column

Module paginate_multi_column 

Source
Expand description

Test keyset pagination over a multi-column order_by.

The cursor must be compared lexicographically: a row that ties the cursor on a leading sort column but is beyond it on a later column belongs on the next page. These are gated on sql because SQL drivers rewrite the cursor into a WHERE filter; NoSQL drivers use a driver-level cursor instead.

Functionsยง

paginate_accepts_cursor_without_hidden_primary_key
paginate_composite_unique_non_nullable_order_needs_no_tiebreaker
paginate_first_page_has_no_previous_page
paginate_first_page_ignores_nested_statement_cursor
paginate_first_page_ignores_subquery_cursor
paginate_multi_column_equal_leading_values
paginate_multi_column_mixed_directions
paginate_non_unique_column_with_newtype_primary_key
paginate_nullable_unique_column_uses_primary_key
paginate_single_non_unique_column
paginate_unique_non_nullable_column_needs_no_tiebreaker