Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFile ¶
LoadConfigFile loads configurations at `cfg.Section` section into `cfg` from `path`. If `path` is empty, `$HOME/.athenai/config` is used.
Types ¶
type Athenai ¶
type Athenai struct {
// contains filtered or unexported fields
}
Athenai is a main struct to run this app.
func (*Athenai) RunQuery ¶
RunQuery runs the given queries. It splits each statement by semicolons and run them concurrently. It skips empty statements.
func (*Athenai) ShowResults ¶
func (a *Athenai) ShowResults()
ShowResults shows results of completed query executions.
func (*Athenai) WithStderr ¶
WithStderr sets stderr to a.
type Config ¶
type Config struct { Debug bool `ini:"debug"` Silent bool `ini:"silent"` Output string `ini:"output"` Section string `ini:"-"` Profile string `ini:"profile"` Region string `ini:"region"` Database string `ini:"database"` Location string `ini:"location"` Encrypt string `ini:"encrypt"` KMS string `ini:"kms"` Format string `ini:"format"` Count uint `ini:"count"` Concurrent uint `ini:"concurrent"` // contains filtered or unexported fields }
Config is a configuration information.
func (*Config) QueryConfig ¶
func (c *Config) QueryConfig() *exec.QueryConfig
QueryConfig creates an exec.QueryConfig struct based on c.
type Either ¶
type Either struct { Left interface{} Right error }
Either represents a value of one of two possible types (a disjoint union).
type SectionError ¶
type SectionError struct { Path string Section string Cause error // Do not implement Cause() for pkg/errors }
SectionError represents an error about section in config file.
func (*SectionError) Error ¶
func (se *SectionError) Error() string
Click to show internal directories.
Click to hide internal directories.