comparison tests/policy.ur @ 1200:5eac14322548

Generated basic dummy Iflow conditions
author Adam Chlipala <adamc@hcoop.net>
date Sun, 04 Apr 2010 14:37:19 -0400
parents c316ca3c9ec6
children 8793fd48968c
comparison
equal deleted inserted replaced
1199:c316ca3c9ec6 1200:5eac14322548
1 table fruit : { Id : int, Nam : string, Weight : float } 1 table fruit : { Id : int, Nam : string, Weight : float, Secret : string }
2 2
3 policy query_policy (SELECT * FROM fruit) 3 policy query_policy (SELECT fruit.Id, fruit.Nam, fruit.Weight FROM fruit)
4
5 fun main () =
6 xml <- queryX (SELECT fruit.Nam
7 FROM fruit
8 ORDER BY fruit.Nam)
9 (fn x => <xml><li>{[x.Fruit.Nam]}</li></xml>);
10
11 return <xml><body>
12 {xml}
13 </body></xml>