Documentation ¶
Index ¶
Constants ¶
View Source
const ( DatabaseDriverPostgres = "postgres" DatabaseDriverMysql = "mysql" )
View Source
const MySQLChecksumTmpl = `` /* 402-byte string literal not displayed */
View Source
const PostgresChecksumTmpl = `` /* 377-byte string literal not displayed */
The ‘x’ prepended to the hash strings, which tells Postgres to interpret them as hex strings when casting to a number.
Variables ¶
View Source
var (
ErrEmptyTable = errors.New("the table has no rows to calculate md5")
)
Functions ¶
Types ¶
type ColumnInfo ¶
ColumnInfo is the column info
type CompareOptions ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is the sql.DB wrapper with some utilities
type TableInfo ¶
type TableInfo struct { TableName string PrimaryKeys []string Columns []*ColumnInfo }
Click to show internal directories.
Click to hide internal directories.