Mercurial > urweb
annotate demo/batchG.ur @ 712:915ec60592d4
More flexible foreign keying
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 09 Apr 2009 13:59:34 -0400 |
parents | 1a317a707d71 |
children | 15ddd64a5113 |
rev | line source |
---|---|
adamc@650 | 1 table t : {Id : int, A : string, B : float} |
adamc@708 | 2 PRIMARY KEY Id |
adamc@650 | 3 |
adamc@650 | 4 open BatchFun.Make(struct |
adamc@650 | 5 val tab = t |
adamc@650 | 6 val title = "BatchG" |
adamc@650 | 7 val cols = {A = BatchFun.string "A", |
adamc@650 | 8 B = BatchFun.float "B"} |
adamc@650 | 9 end) |