···58585959(* Database operations *)
60606161-let create ~sw path =
6161+let v ~sw path =
6262 (* Create parent directory if needed *)
6363 let parent =
6464 match Eio.Path.split path with
+4-4
lib/sqlite.mli
···1111type t
1212(** A B-tree backed key-value store. *)
13131414-val create : sw:Eio.Switch.t -> Eio.Fs.dir_ty Eio.Path.t -> t
1515-(** [create ~sw path] creates a new database at [path]. If a file already exists
1616- at [path], it will be truncated. The switch [sw] controls the lifetime of
1717- the underlying file handle. *)
1414+val v : sw:Eio.Switch.t -> Eio.Fs.dir_ty Eio.Path.t -> t
1515+(** [v ~sw path] creates a new database at [path]. If a file already exists at
1616+ [path], it will be truncated. The switch [sw] controls the lifetime of the
1717+ underlying file handle. *)
18181919val in_memory : unit -> t
2020(** [in_memory ()] creates a purely in-memory database. No file I/O is
···11(** Unit tests for SQLite key-value store. *)
2233-val suite : (string * unit Alcotest.test_case list) list
33+val suite : string * unit Alcotest.test_case list