class TrailDBConstructor

Overview

Construct a new TrailDB.

Defined in:

traildb.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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.


[View source]

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.


[View source]
def append(traildb : TrailDB) #

Merge an existing TrailDB in this TrailDB.

traildb -- an existing TrailDB


[View source]
def close #

Finalize this TrailDB. You cannot add new events in this TrailDB after calling this function.

Returns a new TrailDB handle.


[View source]
def finalize #

[View source]