summaryrefslogtreecommitdiff
path: root/lib/query/query.mli
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-03-30 17:56:42 +0200
committerSébastien Dailly <sebastien@dailly.me>2026-04-01 09:49:08 +0200
commit4af7d2f6ff8b38365c97a89c295710f5ed3266f5 (patch)
tree8b641d4992eac896223c5169a8b7301205685d85 /lib/query/query.mli
parent830e7c5d27d161b91402414e6ecd49f1ed818bfb (diff)
Manage insertion for multireferences fields
Diffstat (limited to 'lib/query/query.mli')
-rw-r--r--lib/query/query.mli7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/query/query.mli b/lib/query/query.mli
index 1a26383..9dcef17 100644
--- a/lib/query/query.mli
+++ b/lib/query/query.mli
@@ -6,14 +6,15 @@ val insert :
int64 Lwt.t
(** Insert a new element and return the ID.
- [insert content ~parent provider] will create the content in the database.
+ [insert db content ~parent provider] will create the content in the
+ database.
The parent is required if the content is a subcontent. Not providing the
- parameter is a structural error in the database.
+ parameter will raise the error [TypeMismatch].
For each field in the content, the function [provider] will be called with
the name for this property. The value returned shall match the expected type
- for this property, the execption [TypeMismatch] is raised otherwise.
+ for this property, the exception [TypeMismatch] is raised otherwise.
This is a low-level function: there is no representation for the content
itself, and no functionnals controls are realized. *)