diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-21 12:22:50 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-21 12:22:50 +0100 |
| commit | bc78bea63b7c75e8a9d222dc86fb75ed293a2242 (patch) | |
| tree | 6c864df4d57200c20c7f712ada20a6111ca31538 /lib/query/insert.ml | |
| parent | 9f2a57603dbfce428af36e82fb1c7cdc6e1ad0da (diff) | |
Renamed the module Typ into Types
Diffstat (limited to 'lib/query/insert.ml')
| -rw-r--r-- | lib/query/insert.ml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/query/insert.ml b/lib/query/insert.ml index 26597d8..98a5c88 100644 --- a/lib/query/insert.ml +++ b/lib/query/insert.ml @@ -63,12 +63,12 @@ module MultiReferencesInsert = struct let parent = Identifier.quote Identifier.parent and target = Identifier.quote Identifier.target in match content_type with - | Model.Typ.MultiReference _target -> ( + | Model.Types.MultiReference _target -> ( let (Model.Data.Any d) = provider (Model.Identifier.to_string name) in match d with | Model.Data.None -> acc | Model.Data.V (field_type', values) -> ( - match Model.Typ.eq_ocaml content_type field_type' with + match Model.Types.eq_ocaml content_type field_type' with | None -> raise Encoder.TypeMismatch | Some Equal -> let q = @@ -116,7 +116,7 @@ let insert_row : collect_fields ~init_fields ~filter:(fun field -> let (T ty) = Model.Field.type_ field in - match ty with Model.Typ.MultiReference _ -> false | _ -> true) + match ty with Model.Types.MultiReference _ -> false | _ -> true) fields in let insert_template = @@ -150,7 +150,7 @@ let insert_row : let (T multi_valuated_fields) = collect_fields fields ~filter:(fun field -> let (T ty) = Model.Field.type_ field in - match ty with Model.Typ.MultiReference _ -> true | _ -> false) + match ty with Model.Types.MultiReference _ -> true | _ -> false) in let acc = @@ -202,7 +202,7 @@ let insert : (* Otherwise update the provider to give a value for the parent *) function | "parent" -> - Model.Data.any (Model.Data.v (Model.Typ.Integer, Some parent_id)) + Model.Data.any (Model.Data.v (Model.Types.Integer, Some parent_id)) | other -> provider other) in let module Db = (val db) in |
