package catapult-sqlite

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Backend that writes directly to a Sqlite database.

The database path is either directly provided with "TRACE_DB" or set_file, or it's a file named after the trace ID in the directory set by set_dir (or the default directory otherwise).

The trace ID is determined by "TRACE_ID" if present, otherwise auto-generated or set via set_trace_id.

include Catapult.IMPL
val setup : unit -> unit

Install the catapult logger as a profiling backend.

val teardown : unit -> unit
val with_setup : (unit -> 'a) -> 'a
val set_sqlite_sync : [ `OFF | `NORMAL | `FULL ] -> unit

Set level of crash safety for sqlite. See Writer.create for more details.

val enable : unit -> unit
val enabled : unit -> bool
val set_trace_id : string -> unit
val get_trace_id : unit -> string
val set_multiproc : bool -> unit

Multiprocess mode? If true, then the file will not be truncated.

val set_dir : string -> unit

Set directory in which to store the database by its trace ID.

val set_file : string -> unit

Set database path to use. If not specified, it will be picked from the trace ID, and the directory set_dir.

module Writer : sig ... end
module Backend : sig ... end
module Ev_to_json : sig ... end
OCaml

Innovation. Community. Security.