From 056fcabaeec238a7aa927df39a90acea028b1aa0 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 22 Nov 2026 13:58:16 +0100 Subject: Added an option for loading a value content without the multivaluated fields (allow single query) --- lib/query/query.mli | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'lib/query/query.mli') diff --git a/lib/query/query.mli b/lib/query/query.mli index 5e42f09..0265487 100644 --- a/lib/query/query.mli +++ b/lib/query/query.mli @@ -41,14 +41,22 @@ val update : val select : Caqti_lwt.connection -> + ?multivalued:bool -> Int64.t -> Model.content -> Select.callback -> unit Lwt.t (** Read a row of a content table and call the callback once per field with the - field's named type and its value. See [Query.Select.select] *) + field's name, type and value. With [~multivalued:false], the multivalued + reference fields are not read. See [Query.Select.select] *) val select_list : - Caqti_lwt.connection -> Int64.t -> Model.list -> Select.callback -> unit Lwt.t + Caqti_lwt.connection -> + ?multivalued:bool -> + Int64.t -> + Model.list -> + Select.callback -> + unit Lwt.t (** Read a row of a list table and call the callback once per field with the - field's named type and its value. See [Query.Select.select_list] *) + field's name, type and value. With [~multivalued:false], the multivalued + reference fields are not read. See [Query.Select.select_list] *) -- cgit v1.2.3