Maybe<a> maybeA(a(DBValue) f, DBValue val)
Arguments
val: A database result cellf: A function to convert a database result to a useable type, such as bool.
Usage
Convert a database result to a Prelude::Maybe, returning nothing for a null, and containing a value converted by f otherwise.