Skip to main content

parse_request

Function parse_request 

Source
pub fn parse_request<B>(
    req: &Request<B>,
    default_schema: &str,
    schemas: &[String],
    max_rows: Option<i64>,
) -> Result<ApiRequest>
where B: AsRef<[u8]>,
Expand description

Parse an HTTP request into an ApiRequest.

max_rows is the server-configured ceiling on returned rows (PGRST_MAX_ROWS); pass None for no ceiling. It is applied when the read plan resolves its range, so it caps requests that specify no limit.