Skip to main content

argument_boolean

Function argument_boolean 

Source
pub fn argument_boolean(argument: &PragmaArgument) -> bool
Expand description

Reads a pragma argument as the boolean SQLite accepts.

SQLite reads on, yes and true as one and everything else it cannot parse as zero, which is why PRAGMA foreign_keys = maybe turns them off.

@param argument - the argument as the parser produced it