source: code/trunk/lib/store.ml@ 74

Last change on this file since 74 was 11, checked in by fox, 3 years ago

Remove redundant Store.with_id

File size: 698 bytes
Line 
1module KV = Map.Make (String)
2
3module type T = sig
4 type t
5 type item_t
6 type archive_t = { id: Id.t; name: string; archivists: Person.Set.t; kv: string KV.t; store: t }
7 type record_t = Text.t * item_t
8 val of_path: string -> (archive_t, string) result
9 val newest: record_t -> record_t -> int
10 val oldest: record_t -> record_t -> int
11 val with_text: archive_t -> Text.t -> (string * Text.t, string) result
12 val iter: ?predicate:(Text.t -> bool) -> ?order:(record_t -> record_t -> int) -> ?number:int
13 -> (record_t -> unit) -> archive_t -> unit
14 val fold: ?predicate:(Text.t -> bool) -> ?order:(record_t -> record_t -> int) -> ?number:int
15 -> ('a -> record_t -> 'a) -> 'a -> archive_t -> 'a
16end
Note: See TracBrowser for help on using the repository browser.