compare

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NILVALUE = "NULL"

Variables

This section is empty.

Functions

func CompareSelect

func CompareSelect(sourcedb *sql.DB, destdb *sql.DB, SourceSqls []string, DestSqls []string, cfg *config.Config, silent bool) error

func WriteFile

func WriteFile(filePath string, content string) error

func WriteTableFile

func WriteTableFile(filePath string, t *Table) error

Types

type Table

type Table struct {
	SQLStr       string
	ColumnHeader []string
	RecordList   [][]string
}

func OutPrint

func OutPrint(db *sql.DB, sql string) (*Table, error)

func OutPrintOracle

func OutPrintOracle(db *sql.DB, sql string) (*Table, error)

func (*Table) AddRecord

func (t *Table) AddRecord(slist []string)

func (*Table) ResultString

func (t *Table) ResultString() string

func (*Table) String

func (t *Table) String() string

Jump to

Keyboard shortcuts

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