Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigProperties ¶
type ConfigProperties struct {
// DSN is the complete connection string. Either DSN or individual fields should be set.
DSN string `mapstructure:"dsn"`
// Host is the StarRocks FE hostname or IP.
Host string `mapstructure:"host"`
// Port is the MySQL protocol port (default: 9030).
Port int `mapstructure:"port"`
// Username for authentication.
Username string `mapstructure:"username"`
// Password for authentication.
Password string `mapstructure:"password"`
// Catalog is the StarRocks catalog (for external catalogs like Iceberg, Hive).
Catalog string `mapstructure:"catalog"`
// Database is the default database to use.
Database string `mapstructure:"database"`
// SSL enables TLS encryption.
SSL bool `mapstructure:"ssl"`
// LogQueries enables SQL query logging.
LogQueries bool `mapstructure:"log_queries"`
}
ConfigProperties defines the configuration for StarRocks connection. NOTE: Timezone configuration is not supported for StarRocks. StarRocks uses server-side timezone settings and queries use UTC by default. Unlike some other drivers, there is no client-side timezone parameter in the DSN.
func (*ConfigProperties) Validate ¶
func (c *ConfigProperties) Validate() error
Validate checks the configuration for errors.
Click to show internal directories.
Click to hide internal directories.