Mercurial > urweb
diff lib/ur/top.ur @ 1363:7dd8a6704265
Top.queryI1; fix definition of uw_Basis_minTime
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 24 Dec 2010 16:41:10 -0500 |
parents | 02fc16faecf3 |
children | d328983dc5a6 |
line wrap: on
line diff
--- a/lib/ur/top.ur Fri Dec 24 12:51:46 2010 -0500 +++ b/lib/ur/top.ur Fri Dec 24 16:41:10 2010 -0500 @@ -241,6 +241,12 @@ (fn fs _ => f fs) () +fun queryI1 [nm ::: Name] [fs ::: {Type}] (q : sql_query [] [nm = fs] []) + (f : $fs -> transaction unit) = + query q + (fn fs _ => f fs.nm) + () + fun queryX [tables ::: {{Type}}] [exps ::: {Type}] [ctx ::: {Unit}] [inp ::: {Type}] [tables ~ exps] (q : sql_query [] tables exps) (f : $(exps ++ map (fn fields :: {Type} => $fields) tables)