Skip to main content

take_truthy

Function take_truthy 

Source
fn take_truthy(
    options: &mut CopyOptionSet,
    key: &str,
) -> PgWireResult<Option<bool>>
Expand description

Takes a boolean option with the HTTP header’s exact truthy spellings (true, 1, yes, on, t), plus the COPY forms (bare flag or TRUE/FALSE), so both routes accept the same values.