diff lib/top.ur @ 341:389399d65331

Crud update form
author Adam Chlipala <adamc@hcoop.net>
date Sun, 14 Sep 2008 19:03:55 -0400
parents 075b36dbb1a4
children b85e6ba56618
line wrap: on
line diff
--- a/lib/top.ur	Sun Sep 14 15:20:53 2008 -0400
+++ b/lib/top.ur	Sun Sep 14 19:03:55 2008 -0400
@@ -103,3 +103,9 @@
         query q
                 (fn fs acc => return <xml>{acc}{f fs}</xml>)
                 <xml></xml>
+
+fun oneOrNoRows (tables ::: {{Type}}) (exps ::: {Type}) (q : sql_query tables exps) =
+        [tables ~ exps] =>
+        query q
+                (fn fs _ => return (Some fs))
+                None