Mercurial > urweb
view tests/view.ur @ 754:8688e01ae469
A view query works
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 28 Apr 2009 15:04:37 -0400 |
parents | |
children |
line wrap: on
line source
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>