Mercurial > urweb
view demo/increment.ur @ 1938:d02c1a0d8082
Proper handling of serialization failures during SQL COMMIT
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Mon, 23 Dec 2013 15:59:17 +0000 |
parents | e6bc6bbd7a32 |
children |
line wrap: on
line source
sequence seq fun increment () = nextval seq fun main () = src <- source 0; return <xml><body> <dyn signal={n <- signal src; return <xml>{[n]}</xml>}/> <button value="Update" onclick={fn _ => n <- rpc (increment ()); set src n}/> </body></xml>