mysql

package
v0.0.0-...-be15534 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

GetDBConnImpl is the implementation of pmysql.Factory. Exported for testing.

Functions

This section is empty.

Types

type DDLSink

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

DDLSink is a sink that writes DDL events to MySQL.

func NewDDLSink

func NewDDLSink(
	ctx context.Context,
	changefeedID model.ChangeFeedID,
	sinkURI *url.URL,
	replicaConfig *config.ReplicaConfig,
) (*DDLSink, error)

NewDDLSink creates a new DDLSink.

func (*DDLSink) Close

func (m *DDLSink) Close()

Close closes the database connection.

func (*DDLSink) WriteCheckpointTs

func (m *DDLSink) WriteCheckpointTs(_ context.Context, _ uint64, _ []*model.TableInfo) error

WriteCheckpointTs does nothing.

func (*DDLSink) WriteDDLEvent

func (m *DDLSink) WriteDDLEvent(ctx context.Context, ddl *model.DDLEvent) error

WriteDDLEvent writes a DDL event to the mysql database.

Jump to

Keyboard shortcuts

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