merge

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMergeExecutor

func NewMergeExecutor(dialect *info.Dialect, cfg info.MergeConfig) (io.MergeExecutor, error)

NewMergeExecutor returns new MySQL session

Types

type Executor

type Executor struct {
	*io.Transaction
	// contains filtered or unexported fields
}

Executor represents MySQL merger session

func (*Executor) Exec

func (e *Executor) Exec(ctx context.Context, srcData interface{}, db *sql.DB, tableName string, options ...moption.Option) (info.MergeResult, error)

Exec merges data to database table

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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