mysql

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMissingColumn

func AddMissingColumn(msg *core.Msg, targetTableDef *schema_store.Table) (bool, error)

Types

type MySQLOutput

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

func (*MySQLOutput) Close

func (output *MySQLOutput) Close()

func (*MySQLOutput) Configure

func (output *MySQLOutput) Configure(pipelineName string, data map[string]interface{}) error

func (*MySQLOutput) Execute

func (output *MySQLOutput) Execute(msgs []*core.Msg) error

msgs in the same batch should have the same table name

func (*MySQLOutput) Start

func (output *MySQLOutput) Start() error

type MySQLPluginConfig

type MySQLPluginConfig struct {
	DBConfig     *utils.DBConfig                                 `mapstructure:"target"  json:"target"`
	Routes       []map[string]interface{}                        `mapstructure:"routes"  json:"routes"`
	EngineConfig sql_execution_engine.MySQLExecutionEngineConfig `mapstructure:"sql-engine-config"  json:"sql-engine-config"`
}

Jump to

Keyboard shortcuts

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