summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/common.ml6
-rw-r--r--test/insert.ml4
-rw-r--r--test/update.ml4
3 files changed, 7 insertions, 7 deletions
diff --git a/test/common.ml b/test/common.ml
index 98871a3..6223846 100644
--- a/test/common.ml
+++ b/test/common.ml
@@ -18,7 +18,7 @@ let connect : Configuration.Ast.setting -> Caqti_lwt.connection Lwt.t =
(** Load the given content and return the values as a json *)
let content_as_json :
- 'a Model.Content.t -> (int64, string, [ `One ]) Caqti.Template.Request.t =
+ Model.content -> (int64, string, [ `One ]) Caqti.Template.Request.t =
fun content ->
let fields =
Model.Content.fields content
@@ -57,7 +57,7 @@ let content_as_json :
^ Model.Identifier.quote (Model.Content.id content)
^ " where " ^ Model.Identifier.quote (Model.Identifier.id) ^ "=?")
-let query_values (table : Model.Reference.t Model.Content.t)
+let query_values (table : Model.content)
(feature : Model.Identifier.t) =
let open Caqti.Templater in
direct T.(int64 -->* string)
@@ -72,7 +72,7 @@ let query_values (table : Model.Reference.t Model.Content.t)
content. *)
let collect_references :
Caqti_lwt.connection ->
- Model.Reference.t Model.Content.t ->
+ Model.content ->
int64 ->
(string * int64 * string) list Lwt.t =
fun db content id ->
diff --git a/test/insert.ml b/test/insert.ml
index 451d857..b5da90d 100644
--- a/test/insert.ml
+++ b/test/insert.ml
@@ -14,8 +14,8 @@ let pp : Format.formatter -> t -> unit =
(fun formatter (content_id, id, content) ->
Format.fprintf formatter "@[<v 2>%s:%Ld@;%s@]" content_id id content))
-type content = Model.Reference.t Model.Content.t
-type value = Model.Reference.t Model.Typ.value
+type content = Model.content
+type value = Model.value
type properties = (string * value) list
(** [insert_and_get_result db content entry] will insert the value in the
diff --git a/test/update.ml b/test/update.ml
index 6f22466..74208de 100644
--- a/test/update.ml
+++ b/test/update.ml
@@ -6,8 +6,8 @@ type actions =
| Unset of string
| Text of string * string
| Integer of string * int
- | Reference of Model.Reference.t Model.Typ.reference * string * int
- | References of Model.Reference.t Model.Typ.reference * string * int64 Seq.t
+ | Reference of Model.reference * string * int
+ | References of Model.reference * string * int64 Seq.t
let actions : actions list ref = ref []