summaryrefslogtreecommitdiff
path: root/tests/policy.ur
blob: c381beac7905136aef8043d90e69e644050a2eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
table fruit : { Id : int, Nam : string, Weight : float, Secret : string }

policy query_policy (SELECT fruit.Id, fruit.Nam, fruit.Weight FROM fruit)

fun main () =
    xml <- queryX (SELECT fruit.Id, fruit.Nam
                   FROM fruit)
           (fn x => <xml><li>{[x.Fruit.Nam]}</li></xml>);

    return <xml><body>
      {xml}
    </body></xml>