diff options
Diffstat (limited to 'lib/model/typ.ml')
| -rw-r--r-- | lib/model/typ.ml | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/model/typ.ml b/lib/model/typ.ml index 6168c4c..173f08f 100644 --- a/lib/model/typ.ml +++ b/lib/model/typ.ml @@ -44,25 +44,3 @@ let eq : type a b c. (a, c) t -> (b, c) t -> (a, b) Type.eq option = | Text, Text -> Some Type.Equal | _ -> None -(** Represent the value in the database for a given field. - -Example for inserting data -[ - (* Function providing a value for each field to insert in the database *) - - let f : string -> Model.value = function - | "siret" -> V (Model.Typ.Text, Some "siret") - | "name" -> V (Model.Typ.Text, Some "name") - | _ -> None - - let* id = Query.insert db entity_content f in -] - -*) -type 't value = - | None (** None tell the field is empty in the database *) - | V : ('a option, 't) t * 'a option -> 't value - (** V is the value for the field. The field type is also reported in order - to give the compiler the nature of the data *) - | Seq : (int64, 't) t * int64 Seq.t -> 't value - (** Get a sequence of values for a multivaluated field *) |
