summaryrefslogtreecommitdiff
path: root/lib/query/query.mli
diff options
context:
space:
mode:
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. *)