package current

  1. Overview
  2. Docs
Pipeline language for keeping things up-to-date

Install

Dune Dependency

Authors

Maintainers

Sources

current-v0.5.tbz
sha256=f8c884318a46a568d965c7e8bac00dfe2339efac04ca6f0cbabef916d8b917ca
sha512=e0633239a7d02cdde6264db96c39ed7e3d1adf3a7f09bb25ad002d388f203b561e8c808daee90539bc0ee15c547d2ab4bef1789dcc9c22ed00b151bad0083f64

doc/current.cache/Current_cache/Db/index.html

Module Current_cache.DbSource

Low-level database access (for the web UI and plugins).

Sourcetype entry = {
  1. job_id : string;
  2. build : int64;
  3. value : string;
  4. outcome : string Current.or_error;
  5. ready : float;
  6. running : float option;
  7. finished : float;
  8. rebuild : bool;
}
Sourceval init : unit -> unit

Ensure that the database tables have been created. This is useful if you need to refer to them in your own SQL.

Sourceval query : ?op:string -> ?ok:bool -> ?rebuild:bool -> ?job_prefix:string -> unit -> entry list

Search the database for matching records.

  • parameter op

    : if present, restrict to results from the named builder or publisher

  • parameter ok

    : if present, restrict results to passing (ok=true) or failing (ok=false) results.

  • parameter rebuild

    : if present, restrict results to ones where the rebuild flag matches this.

  • parameter job_prefix

    : if present, restrict results to ones where the job ID starts with this string.

Sourceval ops : unit -> string list

ops () is the list of operation types that can be passed to query.

Sourceval history : limit:int -> job_id:string -> string option * entry list

history ~limit ~job_id returns the in-progress build (if any), and the limit most recent builds with the same key as job_id.

OCaml

Innovation. Community. Security.