diff options
author | 2011-01-20 12:43:12 -0500 | |
---|---|---|
committer | 2011-01-20 12:43:12 -0500 | |
commit | cb0feb02c4730bb4f660028241c938a95aadd532 (patch) | |
tree | 71ae95eb9c0a648b24d0a8cc703ed353d5472def /lib/ur/top.urs | |
parent | 09f3d487fa417fa39b4378977cf991a4e305ae06 (diff) |
queryXI and queryX1I
Diffstat (limited to 'lib/ur/top.urs')
-rw-r--r-- | lib/ur/top.urs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/ur/top.urs b/lib/ur/top.urs index ed3b4c14..0af3e09c 100644 --- a/lib/ur/top.urs +++ b/lib/ur/top.urs @@ -164,11 +164,23 @@ val queryX : tables ::: {{Type}} -> exps ::: {Type} -> ctx ::: {Unit} -> inp ::: -> xml ctx inp []) -> transaction (xml ctx inp []) +val queryXI : tables ::: {{Type}} -> exps ::: {Type} -> ctx ::: {Unit} -> inp ::: {Type} + -> [tables ~ exps] => + sql_query [] [] tables exps + -> (int -> $(exps ++ map (fn fields :: {Type} => $fields) tables) + -> xml ctx inp []) + -> transaction (xml ctx inp []) + val queryX1 : nm ::: Name -> fs ::: {Type} -> ctx ::: {Unit} -> inp ::: {Type} -> sql_query [] [] [nm = fs] [] -> ($fs -> xml ctx inp []) -> transaction (xml ctx inp []) +val queryX1I : nm ::: Name -> fs ::: {Type} -> ctx ::: {Unit} -> inp ::: {Type} + -> sql_query [] [] [nm = fs] [] + -> (int -> $fs -> xml ctx inp []) + -> transaction (xml ctx inp []) + val queryX' : tables ::: {{Type}} -> exps ::: {Type} -> ctx ::: {Unit} -> inp ::: {Type} -> [tables ~ exps] => sql_query [] [] tables exps |