comparison lib/top.urs @ 341:389399d65331

Crud update form
author Adam Chlipala <adamc@hcoop.net>
date Sun, 14 Sep 2008 19:03:55 -0400
parents 075b36dbb1a4
children b85e6ba56618
comparison
equal deleted inserted replaced
340:5ccb1c6412e4 341:389399d65331
64 val queryX : tables ::: {{Type}} -> exps ::: {Type} -> ctx ::: {Unit} 64 val queryX : tables ::: {{Type}} -> exps ::: {Type} -> ctx ::: {Unit}
65 -> sql_query tables exps -> tables ~ exps 65 -> sql_query tables exps -> tables ~ exps
66 -> ($(exps ++ fold (fn nm (fields :: {Type}) acc => [nm] ~ acc => [nm = $fields] ++ acc) [] tables) 66 -> ($(exps ++ fold (fn nm (fields :: {Type}) acc => [nm] ~ acc => [nm = $fields] ++ acc) [] tables)
67 -> xml ctx [] []) 67 -> xml ctx [] [])
68 -> transaction (xml ctx [] []) 68 -> transaction (xml ctx [] [])
69
70 val oneOrNoRows : tables ::: {{Type}} -> exps ::: {Type} -> sql_query tables exps
71 -> tables ~ exps
72 -> transaction
73 (option $(exps ++ fold (fn nm (fields :: {Type}) acc => [nm] ~ acc => [nm = $fields] ++ acc) [] tables))