Files
probo/pkg
gearnode 709b3363c5 Refactor pagination system with flexible ordering support
This commit overhauls the pagination system to support flexible ordering
beyond the default created_at timestamp:

- Change CursorKey from fixed byte array to structured object with ID and Value
- Add OrderField and OrderDirection types to support different sorting options
- Update SQLFragment to dynamically generate SQL based on field and direction
- Modify cursor navigation logic to consider custom ordering
- Simplify Position type to use string constants instead of numeric values
- Update Page struct to include reference to Cursor

These changes allow paginated queries to be ordered by different fields
(created_at, updated_at, name) in either ascending or descending order
while maintaining consistent cursor-based pagination behavior.

Signed-off-by: gearnode <bryan@frimin.fr>
2025-03-18 16:12:04 +01:00
..
2025-03-13 11:57:42 +01:00
2025-03-10 14:33:44 +01:00
2025-03-12 15:02:08 +01:00
2025-03-17 19:21:33 +01:00
2025-03-14 09:40:19 +01:00
2025-03-16 18:44:17 +01:00
2025-03-14 10:10:28 +01:00
2025-03-14 11:17:28 +01:00