Documentation
¶
Index ¶
Constants ¶
View Source
const SourceType string = "singlestore"
SourceType for SingleStore source
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string `yaml:"name" validate:"required"`
Type string `yaml:"type" validate:"required"`
Host string `yaml:"host" validate:"required"`
Port string `yaml:"port" validate:"required"`
User string `yaml:"user" validate:"required"`
Password string `yaml:"password" validate:"required"`
Database string `yaml:"database" validate:"required"`
QueryTimeout string `yaml:"queryTimeout"`
ConnectionParams map[string]string `yaml:"connectionParams"`
}
Config holds the configuration parameters for connecting to a SingleStore database.
func (Config) Initialize ¶
Initialize sets up the SingleStore connection pool and returns a Source.
func (Config) SourceConfigType ¶
SourceConfigType returns the type of the source configuration.
type Source ¶
Source represents a SingleStore database source and holds its connection pool.
func (*Source) SingleStorePool ¶
SingleStorePool returns the underlying *sql.DB connection pool for SingleStore.
func (*Source) SourceType ¶
SourceType returns the type of the source configuration.
func (*Source) ToConfig ¶
func (s *Source) ToConfig() sources.SourceConfig
Click to show internal directories.
Click to hide internal directories.