mysql

package
v0.0.0-...-86597e6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binlog

type Binlog struct {
	*config.Config
	// contains filtered or unexported fields
}

func NewBinlog

func NewBinlog(ctx context.Context, config *config.Config) (*Binlog, error)

func (*Binlog) Close

func (binlog *Binlog) Close()

func (*Binlog) PingContext

func (binlog *Binlog) PingContext(ctx context.Context) error

func (*Binlog) Run

func (binlog *Binlog) Run(ctx context.Context, value chan interfaces.Payload) (err error)

func (*Binlog) SavePosition

func (binlog *Binlog) SavePosition(fn func(file string, position int))

type Column

type Column struct {
	Name string
}

type OutboxPattern

type OutboxPattern struct {
	*config.Outbox
	// contains filtered or unexported fields
}

func NewOutboxPattern

func NewOutboxPattern(ctx context.Context, config *config.Outbox) (*OutboxPattern, error)

func (*OutboxPattern) Close

func (outbox *OutboxPattern) Close()

func (*OutboxPattern) PingContext

func (outbox *OutboxPattern) PingContext(ctx context.Context) error

func (*OutboxPattern) Run

func (outbox *OutboxPattern) Run(ctx context.Context, value chan interfaces.BinlogOutbox) (err error)

func (*OutboxPattern) SavePosition

func (outbox *OutboxPattern) SavePosition() error

type OutboxPolling

type OutboxPolling struct {
	*config.OutboxPolling
	// contains filtered or unexported fields
}

func NewOutboxPolling

func NewOutboxPolling(
	ctx context.Context,
	polling *config.OutboxPolling,
	publisher interfaces.Publisher,
	runInTransaction transaction,
) (*OutboxPolling, error)

func (*OutboxPolling) PingContext

func (p *OutboxPolling) PingContext(ctx context.Context) error

func (*OutboxPolling) Start

func (p *OutboxPolling) Start(ctx context.Context) error

type Table

type Table struct {
	Schema      string
	Name        string
	Columns     []Column
	ColumnCount int
}

func (*Table) Get

func (tbl *Table) Get() string

type TableInfo

type TableInfo struct {
	Conn  *sql.DB
	Cache *cache.Cache
}

func NewTableInfo

func NewTableInfo(conn *sql.DB) *TableInfo

func (*TableInfo) Get

func (info *TableInfo) Get(schema string, name string) (*Table, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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