class TrailDBConstructor
- TrailDBConstructor
- Reference
- Object
Overview
Construct a new TrailDB.
Defined in:
traildb.crConstructors
-
.new(path : String, ofields : Array(String) = [] of String)
Initialize a new TrailDB constructor.
Instance Method Summary
-
#add(uuid : String, tstamp : Time | UInt64 | Int32, values : Array(String))
Add an event in TrailDB.
-
#append(traildb : TrailDB)
Merge an existing TrailDB in this TrailDB.
-
#close
Finalize this TrailDB.
- #finalize
Constructor Detail
Initialize a new TrailDB constructor.
path -- TrailDB output path (the .tdb
extension is optional).
ofields -- List of field (names) in this TrailDB.
Instance Method Detail
def 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.
Merge an existing TrailDB in this TrailDB.
traildb -- an existing TrailDB
def close
#
Finalize this TrailDB. You cannot add new events in this TrailDB after calling this function.
Returns a new TrailDB handle.