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.