Current_cache.DbLow-level database access (for the web UI and plugins).
type entry = {job_id : string;build : int64;value : string;outcome : string Current.or_error;ready : float;running : float option;finished : float;rebuild : bool;}Ensure that the database tables have been created. This is useful if you need to refer to them in your own SQL.
val query :
?op:string ->
?ok:bool ->
?rebuild:bool ->
?job_prefix:string ->
unit ->
entry listSearch the database for matching records.
val history : limit:int -> job_id:string -> string option * entry listhistory ~limit ~job_id returns the in-progress build (if any), and the limit most recent builds with the same key as job_id.