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

View file

@ -4,7 +4,7 @@ type t
A [t] represents a loaded log file and a cursor pointing to the currently
active line. *)
val create : string -> t
val create : logfile:string -> dbfile:string -> t
(** [create file] loads the log file into memory and initializes the cursor at
the first line. *)
@ -22,3 +22,6 @@ val cursor : t -> int
val size : t -> int
(** Number of lines in the log. *)
val dbsize : t -> int
(** Number of entries in the db. *)