sqldiff

package
v0.0.0-...-13b0add Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetColorDiff

func GetColorDiff(expect, actual string) string

Types

type SqlResult

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

sql result present the result receive from database

func GetQueryResult

func GetQueryResult(db *sql.DB, query string) (*SqlResult, error)

execute the sql statement and return the raw data

func (*SqlResult) HasResult

func (result *SqlResult) HasResult() bool

func (*SqlResult) String

func (result *SqlResult) String() string

readable query result like mysql shell client

type StandardComparer

type StandardComparer struct {
	Strict bool
}

func (*StandardComparer) CompareQuery

func (c *StandardComparer) CompareQuery(db1, db2 *sql.DB, query string) (string, error, error)

Jump to

Keyboard shortcuts

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