mysql

package
v0.0.0-...-bad0887 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const DriverID = "thunder.mysql"

Variables

This section is empty.

Functions

func GetSqlForProcessor

func GetSqlForProcessor(processor *thunder.Processor) (string, error)

func StatsQuery

func StatsQuery(database string) string

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Config

func (d *Driver) Config() thunder.SourceDriverConfig

func (*Driver) GetDocumentsForProcessor

func (d *Driver) GetDocumentsForProcessor(processor *thunder.Processor, in chan<- *thunder.Document, ctx context.Context, limit uint64) error

func (*Driver) ID

func (d *Driver) ID() string

func (*Driver) New

func (d *Driver) New(config any) (thunder.SourceDriver, error)

func (*Driver) Start

func (*Driver) Stats

func (d *Driver) Stats() (*thunder.SourceDriverStats, error)

func (*Driver) Stop

func (d *Driver) Stop() error

func (*Driver) TestConfig

func (d *Driver) TestConfig() (string, error)

type DriverConfig

type DriverConfig struct {
	Host     string `default:"localhost"`
	Port     uint16 `type:"number" default:"3306"`
	User     string `required:"true"`
	Password string `required:"true" type:"password"`
	Database string `required:"true"`
}

func (DriverConfig) Excerpt

func (cfg DriverConfig) Excerpt() string

Jump to

Keyboard shortcuts

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