view tests/view.ur @ 2022:1a4b2b983889

Change String to avoid Char dependency
author Adam Chlipala <adam@chlipala.net>
date Wed, 11 Jun 2014 08:31:14 -0400
parents 8688e01ae469
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>