Kaya 0.5.3 reference for DB::maybeA

List of functions and data types in DB

Maybe<a> maybeA(a(DBValue) f, DBValue val)

Arguments

Usage

Convert a database result to a Prelude::Maybe, returning nothing for a null, and containing a value converted by f otherwise.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya