source

package
v0.0.0-...-0795aef Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLClient

type MySQLClient struct {
	*sqlx.DB
}

MySQLClient implements SourceClient for MySQL

func BuildMySQLClient

func BuildMySQLClient() (*MySQLClient, error)

BuildMySQLClient builds MySQL specific SourceClient

func (*MySQLClient) Fetch

func (c *MySQLClient) Fetch(startPos tracker.Position, target *config.MinerTarget) ([]converters.InternalRow, error)

Fetch fetches batch-sized number of records from the outbox table

type SourceClient

type SourceClient interface {
	Fetch(startPos tracker.Position, target *config.MinerTarget) ([]converters.InternalRow, error)
}

SourceClient provide queries for outbox table

func BuildClient

func BuildClient() (SourceClient, error)

BuildClient builds SourceClient for abstraction

Jump to

Keyboard shortcuts

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