pub fn count_by_status(
conn: &Connection,
status: PendingEmbeddingStatus,
) -> Result<usize, AppError>Expand description
Counts the entries list_by_status would page through.
GAP-SG-201: embedding list --limit N is a page of a countable set, and the
output surface cannot tell a page from a corpus without the size of the
corpus. The WHERE clause mirrors list_by_status exactly.
§Errors
Returns AppError when the query fails.