view tests/random.ur @ 2222:4d967a4ddb82

Merge.
author Ziv Scully <ziv@mit.edu>
date Sat, 29 Nov 2014 03:38:26 -0500
parents ac141fbb313a
children
line wrap: on
line source
table t : { A : int }

fun main () : transaction page =
    x <- queryX (SELECT *
                 FROM t
                 ORDER BY RANDOM)
         (fn r => <xml>{[r.T.A]}<br/></xml>);
    return <xml><body>{x}</body></xml>