adam@1355: sequence s adam@1355: table t : { Id : int, S1 : string, S2:string, S3:string, S4:string } adam@1355: adam@1355: fun each (n : int, (f : unit -> transaction unit)) = if n > 0 then f (); each ((n-1),f) else return () adam@1355: adam@1355: fun fill () = adam@1355: dml (DELETE FROM t WHERE 1=1); adam@1355: each (1,( fn () => adam@1355: (nv <- nextval s; adam@1355: (dml (INSERT INTO t (Id, S1, S2, S3, S4) VALUES ({[nv]}, {["S1"]}, {["S2"]}, {["S3"]}, {["S4"]})))) adam@1355: )); adam@1355: return done adam@1355: adam@1355: fun main () = return adam@1355:
adam@1355: