escape: {
    measurement: (value: string) => string;
    quoted: (value: string) => string;
    tag: (value: string) => string;
} = ...

Provides functions escape specific parts in InfluxDB line protocol.

Type declaration

  • measurement: (value: string) => string

    Measurement escapes measurement names.

  • quoted: (value: string) => string

    Quoted escapes quoted values, such as database names.

  • tag: (value: string) => string

    TagEscaper escapes tag keys, tag values, and field keys.