clients

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTableExists

func CheckTableExists(db *sql.DB, schema, table string) (bool, error)

func CreateDB

func CreateDB(db *sql.DB, dbName string) error

func CreateNewTable

func CreateNewTable(db *sql.DB, schema string, table string) error

func GetSyncerCheckpoint

func GetSyncerCheckpoint(db *sql.DB, id, taskName string) (string, uint32, error)

getSyncerCheckpoint returns binlog name, binlog position and error

func OpenDB

func OpenDB(dbConn string) (*sql.DB, error)

func ShowCreateTable

func ShowCreateTable(db *sql.DB, schema, table string) (string, error)

Types

type CheckerClient

type CheckerClient struct {
}

func NewChecker

func NewChecker() *CheckerClient

func (*CheckerClient) CheckDatabase

func (cc *CheckerClient) CheckDatabase(syncDiffInspectorBinary, syncDiffInsTemplate, sourceId, targetId string, tableId int) bool

check if the current database and target database is the same database.

type DbClient

type DbClient struct {
	*sql.DB
}

This client describe the control to database. Currently it's just a wrapper.

Directories

Path Synopsis
pb
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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