-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditGrid.urs
25 lines (18 loc) · 863 Bytes
/
editGrid.urs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(* A simple grid for editing a whole table, when its column values can all be represented in textboxes *)
functor Make(M : sig
con key :: {Type}
con rest :: {Type}
constraint key ~ rest
table tab : (key ++ rest)
val keyFl : folder key
val restFl : folder rest
val keyShow : $(map show key)
val keyRead : $(map read key)
val keyEq : $(map eq key)
val keyInj : $(map sql_injectable key)
val restShow : $(map show rest)
val restRead : $(map read rest)
val restInj : $(map sql_injectable rest)
val labels : $(map (fn _ => string) (key ++ rest))
val authorized : transaction bool
end) : Ui.S0