summaryrefslogtreecommitdiff
path: root/lib/value/data.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-11-21 11:23:41 +0100
committerSébastien Dailly <sebastien@dailly.me>2026-11-21 11:23:41 +0100
commitce13c93cf14cb71894481b0303a7058a72a6f4ce (patch)
treebd93186a65f6645cb4401f188d266d743cc2fde7 /lib/value/data.ml
parent172a02b80d8dbdcfe09129d7fa76015bb5ec4d79 (diff)
Load values from the database
Diffstat (limited to 'lib/value/data.ml')
-rw-r--r--lib/value/data.ml24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/value/data.ml b/lib/value/data.ml
deleted file mode 100644
index f0e321e..0000000
--- a/lib/value/data.ml
+++ /dev/null
@@ -1,24 +0,0 @@
-(** The data carried by a field of a value.
-
- [None] tells the field is empty (or left as is, on update), [V] carries a
- single value together with the type of its field, and [Seq] carries a
- sequence of references for a multivalued field.
-
- The type is parameterized over the type of the data held (['a]: the DB
- representation of the field, e.g. [string option] or [int64 option]) and
- over ['t], the target of the field for references — a reference is held as
- an [int64] (the id of the target row), while ['t] records what it points to.
- The field type {!Model.Typ.t} stays in the model package; only the data
- itself lives here. *)
-type ('ocaml, 't) data =
- | None
- | V : ('db, 'ocaml, 't) Model.Typ.t * 'ocaml -> ('ocaml, 't) data
-
-let none : ('ocaml, 't) data = None
-
-let v : ('db, 'ocaml, 't) Model.Typ.t * 'ocaml -> ('ocaml, 't) data =
- fun (typ, value) -> V (typ, value)
-
-type 't any = Any : ('ocaml, 't) data -> 't any [@@unboxed]
-
-let any : ('ocaml, 't) data -> 't any = fun data -> Any data