diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-22 13:58:16 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-22 13:58:16 +0100 |
| commit | 056fcabaeec238a7aa927df39a90acea028b1aa0 (patch) | |
| tree | 3246359561eb2375e85da4537e05a083a1348467 /lib/query/query.mli | |
| parent | bc78bea63b7c75e8a9d222dc86fb75ed293a2242 (diff) | |
Added an option for loading a value content without the multivaluated fields (allow single query)main
Diffstat (limited to 'lib/query/query.mli')
| -rw-r--r-- | lib/query/query.mli | 14 |
1 files changed, 11 insertions, 3 deletions
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] *) |
