Mercurial > urweb
view tests/consub.ur @ 1924:b44138e6a3bf
Add activeHead tag.
activeHead is similar to active but produces xhead instead of xbody
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Fri, 06 Dec 2013 13:59:39 +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)