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/encoder.ml | |
| parent | 9f2a57603dbfce428af36e82fb1c7cdc6e1ad0da (diff) | |
Renamed the module Typ into Types
Diffstat (limited to 'lib/query/encoder.ml')
| -rw-r--r-- | lib/query/encoder.ml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/query/encoder.ml b/lib/query/encoder.ml index 5e5f402..4c8d528 100644 --- a/lib/query/encoder.ml +++ b/lib/query/encoder.ml @@ -304,18 +304,18 @@ module DataToCaqtiValues = Map (struct | Model.Data.None -> (* The provider does not have any value for this property, use the default value*) - Model.Typ.default_value content_type + Model.Types.default_value content_type | Model.Data.V (field_type', value) -> ( (* For the single-column fields handled here, the DB and code representations coincide — match the field type to prove it *) - let check (type x) (ct : (x, x, Model.target) Model.Typ.t) : x = - match Model.Typ.eq_ocaml ct field_type' with + let check (type x) (ct : (x, x, Model.target) Model.Types.t) : x = + match Model.Types.eq_ocaml ct field_type' with | Some Equal -> value | None -> raise TypeMismatch in match content_type with - | Model.Typ.MultiReference _ -> raise TypeMismatch - | Model.Typ.Text as ct -> check ct - | Model.Typ.Integer as ct -> check ct - | Model.Typ.MonoReference _ as ct -> check ct)) + | Model.Types.MultiReference _ -> raise TypeMismatch + | Model.Types.Text as ct -> check ct + | Model.Types.Integer as ct -> check ct + | Model.Types.MonoReference _ as ct -> check ct)) end) |
