Mercurial > urweb
view tests/consub.ur @ 2266:afd12c75e0d6
Do SQL and pure caching in the same pass.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Wed, 14 Oct 2015 15:45:04 -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)