comparison lib/basis.urs @ 303:7204fab29486

Parsing UPDATE
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 14:15:16 -0400
parents bc89dfdbc495
children 55eedecb6c50
comparison
equal deleted inserted replaced
302:bc89dfdbc495 303:7204fab29486
208 -> $(fold (fn nm (t :: Type) acc => [nm] ~ acc => 208 -> $(fold (fn nm (t :: Type) acc => [nm] ~ acc =>
209 [nm = sql_exp [T = fields] [] [] t] ++ acc) [] fields) 209 [nm = sql_exp [T = fields] [] [] t] ++ acc) [] fields)
210 -> dml 210 -> dml
211 211
212 val update : changed ::: {Type} -> unchanged ::: {Type} -> changed ~ unchanged 212 val update : changed ::: {Type} -> unchanged ::: {Type} -> changed ~ unchanged
213 -> $changed 213 -> $(fold (fn nm (t :: Type) acc => [nm] ~ acc =>
214 [nm = sql_exp [T = changed ++ unchanged] [] [] t] ++ acc) [] changed)
214 -> sql_table (changed ++ unchanged) 215 -> sql_table (changed ++ unchanged)
215 -> sql_exp [T = changed ++ unchanged] [] [] bool 216 -> sql_exp [T = changed ++ unchanged] [] [] bool
216 -> dml 217 -> dml
217 218
218 val delete : fields ::: {Type} 219 val delete : fields ::: {Type}