(** Low level insertion in the database *) val insert : Caqti_lwt.connection -> Model.content -> ?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 -> 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 table, with the parent pointing to the inserted list row. *) val insert_references : Caqti_lwt.connection -> Model.content -> Int64.t -> Model.Identifier.t -> Value.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 *)