diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-20 16:23:53 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-20 16:23:53 +0100 |
| commit | b05e2d2be7be28ee6c577671002797cf9abaf177 (patch) | |
| tree | 0474684d619721024f0a6cb132cf2f4d2e84c344 /lib/query/insert.mli | |
| parent | c4ca180fd7c2085e3ce3f8e32aa0c2cb724f4c53 (diff) | |
New module for working with Values
Diffstat (limited to 'lib/query/insert.mli')
| -rw-r--r-- | lib/query/insert.mli | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/query/insert.mli b/lib/query/insert.mli index 32251ac..583c568 100644 --- a/lib/query/insert.mli +++ b/lib/query/insert.mli @@ -3,17 +3,18 @@ val insert : Caqti_lwt.connection -> Model.content -> - ?parent:int64 -> - (string -> Model.value) -> - int64 Lwt.t + ?parent:Model.content Value.t -> + (string -> Value.value) -> + Model.content Value.t Lwt.t (** See [Query.insert] *) val insert_list : Caqti_lwt.connection -> Model.list -> - (string -> Model.value) -> - int64 Lwt.t -(** Insert a row in the dedicated table of a static list, and return its id. + (string -> Value.value) -> + Model.list Value.t Lwt.t +(** Insert a row in the dedicated table of a static list, and return it as a + value. The [provider] is called with the name of each field of the list to get its value, like [insert]. Multivalued fields are inserted in their dedicated @@ -24,7 +25,7 @@ val insert_references : Model.content -> Int64.t -> Model.Identifier.t -> - Model.value -> + Value.value -> Int64.t Intf.data -> unit Lwt.t (** Insert a list of references for a content. This function is used during the |
