diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 08:47:29 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 08:47:29 +0100 |
| commit | a9628fda0fc027c54b5ed5313a0c41731d79e41f (patch) | |
| tree | 9240bc709d0f93336b20fb3d6b3b6cb2e8a35423 /lib/query/update.ml | |
| parent | 36e895119c80d52e0d3a3695a3cf3d93e41bcd3e (diff) | |
Create all the datatypes in a single time.
Use aliases for the type name for clarification
Diffstat (limited to 'lib/query/update.ml')
| -rw-r--r-- | lib/query/update.ml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/query/update.ml b/lib/query/update.ml index d828b6b..2475d40 100644 --- a/lib/query/update.ml +++ b/lib/query/update.ml @@ -1,6 +1,6 @@ (** Generate the update queries for a content *) -type provider = string -> Model.Reference.t Model.Typ.value +type provider = string -> Model.value module UpdateTemplate = Encoder.Map (struct type 'a t = string @@ -21,8 +21,8 @@ end) let update_fields : Caqti_lwt.connection -> - 'a Model.Content.t -> - (Intf.t_type * (string * Model.Reference.t Model.Typ.value)) list -> + Model.content -> + (Intf.t_type * (string * Model.value)) list -> int64 -> unit Lwt.t = fun db content fields id -> @@ -77,7 +77,7 @@ module ReferencesSet = Set.Make (Int64) let update_mulivaluated_field : Caqti_lwt.connection -> - Model.Reference.t Model.Content.t -> + Model.content -> (Model.Identifier.t * (int64, Model.Reference.t) Model.Typ.t * int64 Seq.t) list -> int64 -> @@ -148,8 +148,8 @@ let update_mulivaluated_field : let q : Caqti_lwt.connection -> Int64.t -> - Model.Reference.t Model.Content.t -> - (string -> Model.Reference.t Model.Typ.value) -> + Model.content -> + (string -> Model.value) -> unit Lwt.t = fun db id content provider -> let module Db = (val db) in |
