featurebase/cli/config.go
Travis Turner 162ac1c33b
Work-around for bug in query service.
This is a temporary fix which works around the bug introduced in the
query service. That bug requires a databaseID at all times. This commit
lets a user configure fbsql with a databaseID.
2023-03-19 13:42:20 -05:00

26 lines
586 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"`
DatabaseID string `json:"db-id"`
// CloudAuth
CloudAuth CloudAuthConfig `json:"cloud-auth"`
// Kafka
KafkaConfig string `json:"kafka-config"`
HistoryPath string `json:"history-path"`
}
type CloudAuthConfig struct {
ClientID string `json:"client-id"`
Region string `json:"region"`
Email string `json:"email"`
Password string `json:"password"`
}