CountedPaginatedList

class safir.database.CountedPaginatedList(entries, next_cursor, prev_cursor, count)

Bases: PaginatedList[E, C]

Paginated SQL results with pagination metadata and total count.

Holds a paginated list of any Pydantic type, complete with a count and cursors. Can hold any type of entry and any type of cursor, but implicitly requires the entry type be one that is meaningfully paginated by that type of cursor.

Parameters: