TrailDBConstructor
Inherits Reference / Object
Construct a new TrailDB.
Constructors
new(path : String, ofields : Array(String) = [] of String)
Initialize a new TrailDB constructor.
path -- TrailDB output path (the .tdb extension is optional).
ofields -- List of field (names) in this TrailDB.
Instance methods
add(uuid : String, tstamp : Time | UInt64 | Int32, values : Array(String))
Add an event in TrailDB.
uuid -- UUID of this event. tstamp -- Timestamp of this event (datetime or integer). values -- value of each field.
append(traildb : TrailDB)
Merge an existing TrailDB in this TrailDB.
traildb -- an existing TrailDB
close
Finalize this TrailDB. You cannot add new events in this TrailDB after calling this function.
Returns a new TrailDB handle.
finalize
Source