Catapult_sqlite.Writer
DB writer.
val create :
?sync:[ `OFF | `NORMAL | `FULL ] ->
?append:bool ->
?file:string ->
?trace_id:string ->
?dir:string ->
unit ->
t
Open writer into a database file.
val cycle_stmt : t -> unit
Close and recreate internal state.
val close : t -> unit
Close writer.
val with_ :
?sync:[ `OFF | `NORMAL | `FULL ] ->
?append:bool ->
?file:string ->
?trace_id:string ->
?dir:string ->
unit ->
(t -> 'a) ->
'a
val write_string_l : t -> string list -> unit
val write_string : t -> string -> unit
Send a json encoded event. Thread safe.