Skip to main content

bool_as_int for an Option<bool>, a nullable boolean column.

Functions

Reads a nullable int, true unless 0.
Writes Some(true) as 1, Some(false) as 0, and None as null.