From 61c8fdf76c28f65b8b483f68d2d1f5597fdf58ce Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 20 Nov 2010 10:45:22 -0500 Subject: queryL1 and List.sort --- lib/ur/top.ur | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/ur/top.ur') diff --git a/lib/ur/top.ur b/lib/ur/top.ur index ae6cb74a..32d06a43 100644 --- a/lib/ur/top.ur +++ b/lib/ur/top.ur @@ -228,6 +228,11 @@ fun queryL [tables] [exps] [tables ~ exps] (q : sql_query [] tables exps) = (fn r ls => return (r :: ls)) [] +fun queryL1 [t ::: Name] [fs ::: {Type}] (q : sql_query [] [t = fs] []) = + query q + (fn r ls => return (r.t :: ls)) + [] + fun queryI [tables ::: {{Type}}] [exps ::: {Type}] [tables ~ exps] (q : sql_query [] tables exps) (f : $(exps ++ map (fn fields :: {Type} => $fields) tables) -- cgit v1.2.3