Flux packages and functions

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.50 is the most recent stable version of Flux.

Flux’s functional syntax allows you to retrieve, transform, process, and output data easily. There is a large library of built-in functions and importable packages. You can also create your own custom functions to perform operations that suit your needs.

Flux CSV package

The Flux CSV package provides functions for working with data in annotated CSV format. Import the csv package.

Flux InfluxDB v1 package

The Flux InfluxDB v1 package provides functions for managing data from an InfluxDB v1.x database or structured using the InfluxDB v1 data structure. Import the influxdata/influxdb/v1 package.

Flux built-in functions

Built-in functions provide a foundation for working with data using Flux. Because these functions are “built-in,” they do not require an import statement and are usable without any extra setup.

Flux math package

The Flux math package provides basic constants and mathematical functions. Import the math package.

Flux regular expressions package

The Flux regular expressions package includes functions that provide enhanced regular expression functionality. Import the regexp package.

Create custom Flux functions

Create your own custom Flux functions to transform and manipulate data.

Flux SQL package

The Flux SQL package provides tools for working with data in SQL databases such as MySQL and PostgreSQL. Import the sql package.

Flux strings package

The Flux strings package provides functions to manipulate UTF-8 encoded strings. Import the strings package.

Flux testing package

The Flux testing package provides functions that test piped-forward data in specific ways. Import the testing package.