From ce13c93cf14cb71894481b0303a7058a72a6f4ce Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 21 Nov 2026 11:23:41 +0100 Subject: Load values from the database --- lib/query/encoder.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/query/encoder.ml') 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 = -- cgit v1.2.3