summaryrefslogtreecommitdiff
path: root/lib/query/encoder.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/query/encoder.ml')
-rw-r--r--lib/query/encoder.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/query/encoder.ml b/lib/query/encoder.ml
index 2174e59..5e5f402 100644
--- a/lib/query/encoder.ml
+++ b/lib/query/encoder.ml
@@ -291,7 +291,7 @@ module DataToCaqtiValues = Map (struct
include DefaultEncoder
type 'a t = 'a
- type env = string -> Value.value
+ type env = string -> Model.target Model.Data.any
let f : type a b. env -> (a, b) Intf.data -> a t =
fun provider Intf.{ name; content_type } ->
@@ -299,13 +299,13 @@ module DataToCaqtiValues = Map (struct
(* Check the value given by the provider and ensure it’s match the
expected type *)
match result with
- | Value.Data.Any d -> (
+ | Model.Data.Any d -> (
match d with
- | Value.Data.None ->
+ | Model.Data.None ->
(* The provider does not have any value for this property, use the
default value*)
Model.Typ.default_value content_type
- | Value.Data.V (field_type', value) -> (
+ | 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 =