Help us shape the future of Go! Take the 2026 Go Developer Survey

starrocks

package
v0.90.7 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DialectStarRocks drivers.Dialect = func() drivers.Dialect {
	d := &dialect{}
	d.BaseDialect = drivers.NewBaseDialect(drivers.DialectNameStarRocks, EscapeIdentifier, EscapeIdentifier)
	return d
}()

Functions

func EscapeIdentifier added in v0.86.2

func EscapeIdentifier(ident string) string

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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