Skip to main content

count_matching

Function count_matching 

Source
pub fn count_matching<E: Entity>(
    dialect: Dialect,
    criteria: &Criteria,
) -> Prepared
Expand description

SELECT COUNT(*) AS cnt under a Criteria’s filters and joins only.

Ordering and paging are dropped: counting a page’s rows with the page’s own LIMIT applied would always report the page size.