summaryrefslogtreecommitdiff
path: root/lib/query/insert.mli
blob: 3f39bd5e8f56107ea432fd089533956967cddf3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(** Low level insertion in the database *)

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] *)

val insert_references :
  Caqti_lwt.connection ->
  Model.Reference.t Model.Content.t ->
  Int64.t ->
  Model.Identifier.t ->
  Model.Reference.t Model.Typ.value ->
  Int64.t Intf.data ->
  unit Lwt.t
(** Insert a list of references for a content. This function is used during the
    update but is not exposed outside of the module *)