mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 02:44:59 +00:00
* fbsql: add the `--csv` flag for CSV output in non-interactive mode * fbsql: add support for the `--pset=VAR[=ARG]` flag
31 lines
730 B
Go
31 lines
730 B
Go
package cli
|
|
|
|
// Config represents the configuration for the command.
|
|
type Config struct {
|
|
Host string `json:"host"`
|
|
Port string `json:"port"`
|
|
|
|
OrganizationID string `json:"org-id"`
|
|
Database string `json:"db"`
|
|
|
|
// CloudAuth
|
|
CloudAuth CloudAuthConfig `json:"cloud-auth"`
|
|
|
|
// Kafka
|
|
KafkaConfig string `json:"kafka-config"`
|
|
|
|
HistoryPath string `json:"history-path"`
|
|
|
|
// CSV (Comma-Separated Values) table output mode.
|
|
CSV bool `json:"csv"`
|
|
|
|
// PSet takes one or more pset arguments of the form: `--pset=VAR[=ARG]`.
|
|
PSets []string `json:"pset"`
|
|
}
|
|
|
|
type CloudAuthConfig struct {
|
|
ClientID string `json:"client-id"`
|
|
Region string `json:"region"`
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
}
|