2018-06-11 16:21:39 +00:00
|
|
|
package influxql
|
|
|
|
|
2018-07-12 21:27:27 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
2018-06-13 15:07:06 +00:00
|
|
|
|
2018-06-11 16:21:39 +00:00
|
|
|
// Config modifies the behavior of the Transpiler.
|
|
|
|
type Config struct {
|
2020-02-07 22:20:50 +00:00
|
|
|
// Bucket is the name of a bucket to use instead of the db/rp from the query.
|
|
|
|
// If bucket is empty then the dbrp mapping is used.
|
|
|
|
Bucket string
|
2018-06-11 16:21:39 +00:00
|
|
|
DefaultDatabase string
|
|
|
|
DefaultRetentionPolicy string
|
2018-07-12 21:27:27 +00:00
|
|
|
Cluster string
|
2020-02-07 22:20:50 +00:00
|
|
|
Now time.Time
|
2019-12-04 20:31:20 +00:00
|
|
|
// FallbackToDBRP if true will use the naming convention of `db/rp`
|
|
|
|
// for a bucket name when an mapping is not found
|
|
|
|
FallbackToDBRP bool
|
2018-06-11 16:21:39 +00:00
|
|
|
}
|