config

package
v0.0.0-...-2853686 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Host is the database host URL.
	Host string `yaml:"host" pflag:",Database host url"`

	// Username is the database username.
	Username string `yaml:"username" pflag:",Database username"`

	// DatabaseName is the name of the database.
	DatabaseName string `yaml:"database" pflag:",Database name"`

	// Port is the database port.
	Port string `yaml:"port" pflag:",Database Port"`

	// SSL is used to enable or disable SSL for the database connection.
	SSL string `yaml:"ssl" pflag:",Database ssl enable/disable"`

	// ProjectID is the BigQuery project ID.
	ProjectID string `yaml:"project_id" pflag:",BigQuery project ID"`

	// JSONKeyPath is the path to the BigQuery JSON key file.
	JSONKeyPath string `yaml:"json_key_path" pflag:",Path to BigQuery JSON key file"`

	// Warehouse is the Snowflake warehouse.
	Warehouse string `yaml:"warehouse" pflag:",Snowflake warehouse"`

	// Schema is the Snowflake database schema.
	Schema string `yaml:"schema" pflag:",Snowflake database schema"`

	// Account is the Snowflake account ID.
	Account string `yaml:"account" pflag:",Snowflake account ID"`

	// Debug is used to enable or disable debug mode.
	Debug bool `yaml:"debug" pflag:",Debug mode"`
}

Config holds the configuration details for various databases.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL