Skip to main content

read_from_composes_with_multi_item_query

Function read_from_composes_with_multi_item_query 

pub async fn read_from_composes_with_multi_item_query<F: Fixture>(
    open: impl AsyncFn() -> F,
) -> RuleOutcome
Expand description

Every read option composes with a multi-item query.

CF-12. from commutes with filtering semantically and not in generated SQL: WHERE a OR b AND position >= ? binds the cursor to the last item alone, so item a is returned in full regardless of where the caller resumed — and a projection re-delivers already-checkpointed events forever, with no error anywhere.

backwards and limit are exercised here too, and in the same rule rather than in three, because CF-12’s measured finding is that no read option was exercised against a filtering query at all: the gap is one gap, and splitting it into three rules would suggest three.