diff options
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] *) |
