summaryrefslogtreecommitdiff
path: root/lib/query/update.ml
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/query/update.ml
parent9f2a57603dbfce428af36e82fb1c7cdc6e1ad0da (diff)
Renamed the module Typ into Types
Diffstat (limited to 'lib/query/update.ml')
-rw-r--r--lib/query/update.ml14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/query/update.ml b/lib/query/update.ml
index 08a7551..9bd1f2b 100644
--- a/lib/query/update.ml
+++ b/lib/query/update.ml
@@ -60,7 +60,7 @@ module ReferenceListEncoder = Encoder.Map (struct
include Encoder.DefaultEncoder
type 'a t = 'a
- type env = Model.target Model.Typ.multireference * Int64.t Seq.t ref
+ type env = Model.target Model.Types.multireference * Int64.t Seq.t ref
let f : type a b. env -> (a, b) Intf.data -> a t =
fun (t, env) d ->
@@ -68,7 +68,7 @@ module ReferenceListEncoder = Encoder.Map (struct
| Seq.Nil -> raise Not_found
| Cons (value, tl) -> (
env := tl;
- match Model.Typ.eq t d.Intf.content_type with
+ match Model.Types.eq t d.Intf.content_type with
| Some Type.Equal -> value
| None -> raise Encoder.TypeMismatch)
end)
@@ -78,7 +78,7 @@ module ReferencesSet = Set.Make (Int64)
let update_mulivaluated_field :
Caqti_lwt.connection ->
Model.content ->
- (Model.Identifier.t * Model.target Model.Typ.multireference * int64 Seq.t)
+ (Model.Identifier.t * Model.target Model.Types.multireference * int64 Seq.t)
list ->
int64 ->
unit Lwt.t =
@@ -169,7 +169,7 @@ let q :
(fun ((fields, references) as acc :
(Intf.t_type * (string * Model.target Model.Data.any)) list
* (Model.Identifier.t
- * Model.target Model.Typ.multireference
+ * Model.target Model.Types.multireference
* int64 Seq.t)
list) field ->
let name = Model.Field.name field in
@@ -177,13 +177,13 @@ let q :
let tt = Intf.TT { name; content_type } in
let (Model.Data.Any d) = provider (Model.Identifier.to_string name) in
match content_type with
- | Model.Typ.MultiReference _ -> (
+ | Model.Types.MultiReference _ -> (
match d with
| Model.Data.None -> acc
| Model.Data.V (t, seq) -> (
match
- ( Model.Typ.eq content_type t,
- Model.Typ.eq_ocaml content_type t )
+ ( Model.Types.eq content_type t,
+ Model.Types.eq_ocaml content_type t )
with
| Some Type.Equal, Some Type.Equal ->
(fields, (name, t, seq) :: references)