summaryrefslogtreecommitdiff
path: root/tests/view.ur
blob: 36d77deb83568028c8a8fa98b7ae0693b7fbae0e (plain)
1
2
3
4
5
6
7
8
9
10
table t : { A : int, B : string }

view v = SELECT t.A AS X FROM t

fun main () =
    rows <- queryX (SELECT * FROM v)
            (fn r => <xml><li>{[r.V.X]}</li></xml>);
    return <xml><body>
      {rows}
    </body></xml>