QueryDB takes an influx client interface, cmd, and db strings. It tries to
execute the query on the given client, and returns a slice of influx.Result,
and an error, if any were present
type Config struct {
User string Password string URL string// contains filtered or unexported fields
}
Config holds the requisite information to connect to an influx db instance
prefix is an optional variable that is set via the Flags method, so as to
distinguish between flags for different influxdb instances
Flags configures the cli flags for the config. If more than one config is
present for a program, it should be differentiated by a different prefix, so
that the flag names don't collide