summaryrefslogtreecommitdiff
path: root/lib/query/insert.mli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/query/insert.mli')
-rw-r--r--lib/query/insert.mli15
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