Add XapiDb

This commit is contained in:
Guillaume 2026-03-14 02:53:18 +01:00
parent 6c2875bb6b
commit 85971fc1a0
6 changed files with 161 additions and 9 deletions

12
lib/xapidb.mli Normal file
View file

@ -0,0 +1,12 @@
type e (* an element of the database *)
type t (* the database *)
val from_channel : in_channel -> t
(** [from_file ic] reads XML from the input channel and build a relational
database *)
val size : t -> int
(** [size t] returns the number of entries in the database *)
val get_ref : t -> ref:string -> e list
val elt_to_string : e -> string