DatabaseImpl.insert

Insert Mir times-series with multiple columns into the DB. Supported time types are SysTime, DateTime, Date, and long.

See also the example in the mir-integration folder.

  1. void insert(Measurement[] measurements)
  2. void insert(Measurement[] measurements)
  3. void insert(string measurementName, string columnName, Series!(TimeIterator, Iterator, 1, kind) series1, string[string] commonTags)
  4. void insert(string measurementName, string[] columnNames, Series!(TimeIterator, Iterator, 2, kind) series, string[string] commonTags)
    struct DatabaseImpl(alias manageFunc, alias queryFunc, alias writeFunc)
    version(Have_mir_algorithm)
    const
    void
    insert
    (
    TimeIterator
    SliceKind kind
    Iterator
    )
    (,
    in string[] columnNames
    ,
    Series!(TimeIterator, Iterator, 2, kind) series
    ,
    string[string] commonTags = null
    )

Parameters

measurementName string

measurement name

columnNames string[]

array of column names

series Series!(TimeIterator, Iterator, 2, kind)

2D time-series

commonTags string[string]

list of tags to add to each measurement (optional)

Meta