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.mli12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/query/insert.mli b/lib/query/insert.mli
new file mode 100644
index 0000000..63e16a6
--- /dev/null
+++ b/lib/query/insert.mli
@@ -0,0 +1,12 @@
+(** Low level insertion in the database *)
+
+exception TypeMismatch
+(** Exception raised when the given type does not match the value *)
+
+val insert :
+ Caqti_lwt.connection ->
+ Model.Reference.t Model.Content.t ->
+ ?parent:int64 ->
+ (string -> Model.Reference.t Model.Typ.value) ->
+ int64 Lwt.t
+(** See [Query.insert] *)