summaryrefslogtreecommitdiff
path: root/lib/query/insert.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/query/insert.ml')
-rw-r--r--lib/query/insert.ml10
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