comparison demo/more/orm.urs @ 988:d923b47e483d

Basic CRUD operations in Orm
author Adam Chlipala <adamc@hcoop.net>
date Mon, 05 Oct 2009 17:00:04 -0400
parents 6dd122f10c0c
children 0bdc4d538f1c
comparison
equal deleted inserted replaced
987:6dd122f10c0c 988:d923b47e483d
13 end) : sig 13 end) : sig
14 type id 14 type id
15 val inj : sql_injectable id 15 val inj : sql_injectable id
16 val id : meta id 16 val id : meta id
17 17
18 val create : $M.cols -> transaction id 18 type row = $([Id = id] ++ M.cols)
19
20 val create : $M.cols -> transaction row
21 val delete : row -> transaction unit
22 val save : row -> transaction unit
23 val lookup : id -> transaction (option row)
24 val list : transaction (list row)
19 end 25 end