-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquery.mli
45 lines (36 loc) · 912 Bytes
/
query.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module Query : sig
type t = {
kind : Kindkey.search option;
path : Spath.t option;
type_ : Stype.t option;
dist0 : bool; (** true then search only distance=0 *)
}
val to_string : t -> string
val parse : string -> t list option
end
module QueryResult : sig
type t =
[ `EmptyQuery
| `Error
| `Funny
| `Ok of Query.t list
* (int (** dist *)
* (Item.t (** short look *) * int (** look_length *)
* (OCamlFind.Packages.t * (int * Item.t) list) list)
) list
* float * float (** times *)
* int (** size = number of items *)
]
val size : t -> int
end
val query :
Load.PooledDB.t
-> Query.t list
-> QueryResult.t
val funny : Query.t -> bool
val search :
Load.PooledDB.t
-> string
-> QueryResult.t
val cui : Load.PooledDB.t -> 'loop
val cli : unit -> unit