1DB.maybeA(3kaya)             Kaya module reference            DB.maybeA(3kaya)
2
3
4

NAME

6       DB::maybeA - Convert a database result to a Maybe type
7

SYNOPSIS

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

ARGUMENTS

12       val A database result cell
13
14       f  A  function  to convert a database result to a useable type, such as
15       DB.bool (3kaya)
16
17

DESCRIPTION

19       Convert a database result to a Prelude.Maybe (3kaya) , returning  noth‐
20       ing for a null, and containing a value converted by f otherwise.
21

AUTHORS

23       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
24       (kaya@kayalang.org). For further information see http://kayalang.org/
25

LICENSE

27       The Kaya standard library is free software;  you  can  redistribute  it
28       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
29       License (version 2.1 or any later version) as  published  by  the  Free
30       Software Foundation.
31
33       Prelude.Maybe (3kaya)
34       DB.DBValue (3kaya)
35       DB.bool (3kaya)
36       DB.float (3kaya)
37       DB.int (3kaya)
38       DB.string (3kaya)
39       DB.time (3kaya)
40
41
42
43Kaya                             December 2010                DB.maybeA(3kaya)
Impressum