Redesign traits to make it more precise and genericity
Author: HuliiiiiiCreated Sep 27, 2026Updated Sep 27, 2026
LabelsBreaking Change
QuerySelect
QuerySelect currently covers several different capabilities of a SELECT statement:
- projection:
select_only,column,column_as,columns,expr, ... - pagination:
limit,offset - grouping:
group_by,having - distinct:
distinct,distinct_on - joins:
join,join_rev,join_as, ... - locking:
lock,lock_shared,lock_exclusive, ...
For example, Cursor<S> implements QuerySelect, which also exposes projection, join, grouping and locking methods on Cursor, even though only part of them make sense for a cursor.
It also makes generic bounds unnecessarily broad.
Source: SeaQL/sea-orm