Current_cache.DbSourceLow-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.
ops () is the list of operation types that can be passed to query.
history ~limit ~job_id returns the in-progress build (if any), and the limit most recent builds with the same key as job_id.
key ~job_id returns the serialised key associated with the job job_id if any.