Skip to content

A package to build and generate flux queries with ease!

Notifications You must be signed in to change notification settings

golain-io/go-fluxbuilder

Repository files navigation

gofluxbuilder

A package to build and generate flux queries with ease!

Usage

The current features include:

  • From
  • Range
  • Filter

The package is as easy to use as:

result, error := gofluxbuilder.NewGoFluxQueryBuilder()
                 .From(gofluxbuilder.FromBuilder{Bucket: "birdy"})
                 .Range(gofluxbuilder.RangeBuilder{Start: "-4y"})
                 .Filter(gofluxbuilder.NewFilterBuilder().
			Equal("_measurement", "migration"))
                 .Query(context.Background(), &cl)

Currently the following are supported in Filters:

  • and
  • or
  • ==
  • >
  • <
  • >=
  • <=

About

A package to build and generate flux queries with ease!

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages