Skip to main content

parse_list_limit_range

Function parse_list_limit_range 

Source
pub fn parse_list_limit_range(s: &str) -> Result<usize, String>
Expand description

Validates --limit on the commands that page over stored rows.

A looser ceiling than parse_k_range because export --limit ships a default of 100_000. These values reach SQLite as a LIMIT clause, where the row count already bounds the work, so the check rejects absurd input rather than guarding memory.