From ed10a428abc7be47f8cce83db8dc64ac3cb6e84b Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 14 Oct 2008 17:18:59 -0400 Subject: Reusable column handlers for Crud --- tests/crud.urs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/crud.urs') diff --git a/tests/crud.urs b/tests/crud.urs index 866853d5..0b3a4191 100644 --- a/tests/crud.urs +++ b/tests/crud.urs @@ -8,6 +8,12 @@ con colMeta = fn t_formT :: (Type * Type) => Inject : sql_injectable t_formT.1} con colsMeta = fn cols :: {(Type * Type)} => $(mapT2T colMeta cols) +val default : t ::: Type -> show t -> read t -> sql_injectable t -> string -> colMeta (t, string) +val int : string -> colMeta (int, string) +val float : string -> colMeta (float, string) +val string : string -> colMeta (string, string) +val bool : string -> colMeta (bool, bool) + functor Make(M : sig con cols :: {(Type * Type)} constraint [Id] ~ cols -- cgit v1.2.3