Mercurial > urweb
view tests/consub.ur @ 2066:7214a14a6fe2
Return to working version mode
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 30 Aug 2014 08:48:41 -0400 |
parents | 2e6795cc992f |
children |
line wrap: on
line source
functor F(M : sig table t : { A : int, B : int } PRIMARY KEY A end) = struct open M fun getByA a = oneRow1 (SELECT * FROM t WHERE t.A = {[a]}) end table u : { A : int, B : int } PRIMARY KEY A, CONSTRAINT B UNIQUE B open F(struct val t = u end)