Mercurial > urweb
view tests/sqliteTime.ur @ 1564:da11f7b18067
Add an URWEB_PQ_CON environment variable, which overrides the PostgreSQL connection string.
author | Austin Seipp <as@hacks.yi.org> |
---|---|
date | Fri, 23 Sep 2011 23:11:59 -0500 |
parents | 703c2c94afd5 |
children |
line wrap: on
line source
table dates : { Date : time } fun aform () = let val a : time = readError "01/02/03 04:06:07" in dml(INSERT INTO dates (Date) VALUES ({[a]})); ds <- queryX (SELECT * FROM dates) (fn r => <xml>{[r.Dates.Date]}<br/></xml>); return <xml><body>{ds}</body></xml> end fun main () = return <xml><body><form><submit action={aform}/></form></body></xml>