Skip to main content

count

Function count 

Source
pub async fn count(db: &DatabaseConnection, q: &TranscriptQuery) -> Result<u64>
Expand description

How many utterances the same query matches in total.

Counts the same scan the page comes from, so a total and a page cannot describe different searches. A caller that wants a pager needs this, and the page it just fetched cannot stand in for it: the page may be empty while the total is not.