Documentation
¶
Index ¶
- Constants
- type Config
- type Source
- func (s *Source) MySQLDatabase() string
- func (s *Source) MySQLPool() *sql.DB
- func (s *Source) PerformanceSchemaEnabled(ctx context.Context) (bool, error)
- func (s *Source) RetrieveSourceVersion(ctx context.Context) (string, error)
- func (s *Source) RunSQL(ctx context.Context, statement string, params []any) (any, error)
- func (s *Source) SourceType() string
- func (s *Source) ToConfig() sources.SourceConfig
Constants ¶
View Source
const SourceType string = "cloud-sql-mysql"
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"`
Project string `yaml:"project" validate:"required"`
Region string `yaml:"region" validate:"required"`
Instance string `yaml:"instance" validate:"required"`
IPType sources.IPType `yaml:"ipType"`
User string `yaml:"user"`
Password string `yaml:"password"`
Database string `yaml:"database"`
SQLCommenter *bool `yaml:"sqlCommenter"`
}
func (Config) Initialize ¶
func (Config) SourceConfigType ¶
type Source ¶
func (*Source) MySQLDatabase ¶ added in v1.0.0
func (*Source) PerformanceSchemaEnabled ¶ added in v1.5.0
func (*Source) RetrieveSourceVersion ¶ added in v1.5.0
func (*Source) SourceType ¶
func (*Source) ToConfig ¶
func (s *Source) ToConfig() sources.SourceConfig
Click to show internal directories.
Click to hide internal directories.