Skip to main content

append_select_limit

Function append_select_limit 

Source
pub fn append_select_limit(
    stmt: &str,
    limit: Option<u32>,
) -> (String, Option<u32>)
Expand description

Append LIMIT n+1 to a top-level SELECT/WITH that has no LIMIT. The extra row lets callers detect truncation. Independent of batch size.