summaryrefslogtreecommitdiff
path: root/lib/model/data.mli
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-11-21 12:22:50 +0100
committerSébastien Dailly <sebastien@dailly.me>2026-11-21 12:22:50 +0100
commitbc78bea63b7c75e8a9d222dc86fb75ed293a2242 (patch)
tree6c864df4d57200c20c7f712ada20a6111ca31538 /lib/model/data.mli
parent9f2a57603dbfce428af36e82fb1c7cdc6e1ad0da (diff)
Renamed the module Typ into Types
Diffstat (limited to 'lib/model/data.mli')
-rw-r--r--lib/model/data.mli10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/model/data.mli b/lib/model/data.mli
index 6773589..37e7267 100644
--- a/lib/model/data.mli
+++ b/lib/model/data.mli
@@ -8,18 +8,18 @@
data held (e.g. [string option], [int64 option], or [int64 Seq.t] for a
multivalued reference), and over ['t], the target of the field for
references. The DB representation ['db] appears only inside the field type
- carried by the constructors. The field type {!Typ.t} stays in the model
+ carried by the constructors. The field type {!Types.t} stays in the model
package; only the data itself lives here. *)
type ('ocaml, 't) data = private
| None
- | V : ('db, 'ocaml, 't) Typ.t * 'ocaml -> ('ocaml, 't) data
+ | V : ('db, 'ocaml, 't) Types.t * 'ocaml -> ('ocaml, 't) data
val none : ('ocaml, 't) data
(** [none] tells the field is empty in the database (or left as is, on update)
*)
-val v : ('db, 'ocaml, 't) Typ.t * 'ocaml -> ('ocaml, 't) data
+val v : ('db, 'ocaml, 't) Types.t * 'ocaml -> ('ocaml, 't) data
(** [v (typ, value)] is the value for the field, in its code representation
['ocaml] — e.g. a single [string option], or an [int64 Seq.t] for a
multivalued reference. The field type [typ] is also reported: it ties the
@@ -39,7 +39,7 @@ val any : ('ocaml, 't) data -> 't any
(* Function providing the data of each field to insert in the database *)
let f : string -> Reference.target any = function
- | "siret" -> any (v (Typ.Text, Some "siret"))
- | "name" -> any (v (Typ.Text, Some "name"))
+ | "siret" -> any (v (Types.Text, Some "siret"))
+ | "name" -> any (v (Types.Text, Some "name"))
| _ -> any none
] *)