Versions in this module Expand all Collapse all v0 v0.1.2 Oct 28, 2021 v0.1.1 Sep 30, 2021 Changes in this version + const DefaultExcelMaxFileSize + const UTF8BOM + const WatermarkPrefix + const WatermarkSuffix + const WrongArgValue + const WrongArgsCount + const WrongColumnsCnt + const WrongEmptySet + const WrongJSONFormat + const WrongLargeThan0 + const WrongMaskFunc + const WrongQuotesValue + const WrongSQLFormat + var TestPath string + func Escape(sql string) string + func GetXlsxWatermark(filename string) (string, error) + func InitTestEnv() + func PanicIfError(err error) + func PrintConfig(c Config) + func ResourceLimit(cpu int, mem uint64) error + func SQLReadLine(data []byte, atEOF bool) (advance int, token []byte, err error) + func SetXlsxWatermark(filename string, watermark string) error + func StringUnique(stringSlice []string) []string + type Config struct + ANSIQuotes bool + BOM bool + Charset string + CheckEmpty bool + Cipher string + Comma rune + Comments []string + CompleteInsert bool + DSN string + Database string + Detect bool + DisableForeignKeyChecks bool + ExcelMaxFileSize int + ExtendedInsert int + File string + HexBLOB []string + Host string + IgnoreBlank bool + IgnoreColumns []string + Import bool + Limit int + LineBreak string + Lint bool + LintLevel string + Mask string + MaxBufferSize int + NULLString string + NoHeader bool + Password string + Port string + Preview int + PrintCipher bool + PrintConfig bool + Query string + RandSeed int64 + Replace bool + Schema string + Sensitive string + Server string + SkipLines int + Socket string + Table string + Update []string + User string + Verbose bool + Watermark string + var TestConfig Config + func ParseFlags() (Config, error) + func (c Config) DBAvailable(conn *sql.DB) bool + func (c Config) DBParseColumnTypes(header []*sql.ColumnType) []HeaderColumn + func (c Config) DBParseHeaderColumn(header []HeaderColumn) []string + func (c Config) DBParseNullString(header []HeaderColumn, columns []string) []sql.NullString + func (c Config) DBParserColumnNames(header []*sql.ColumnType) []string + func (c Config) ExecResult() (sql.Result, error) + func (c Config) GetColumnTypes() ([]*sql.ColumnType, error) + func (c Config) Hex(name string, value interface{}) (string, bool) + func (c Config) NewConnection() (*sql.DB, error) + func (c Config) ParseArray(values []string) string + func (c Config) ParseSchema() (header []HeaderColumn, err error) + func (c Config) QueryRows() (*sql.Rows, error) + func (c Config) QuoteKey(str string) string + func (c Config) QuoteString(str string) string + func (c Config) SQLInsertPrefix(header Row) (string, error) + func (c Config) SQLInsertValues(header []HeaderColumn, columns []sql.NullString) (string, error) + func (c Config) SQLMultiValues(counter int, prefix, values string) string + func (c Config) SetForeignKeyChecks(enable bool, conn *sql.DB, args ...string) error + func (c Config) TableTemplate() ([]HeaderColumn, error) + type HeaderColumn struct + DatabaseType string + Name string + ScanType string + type Row []string + type Rows []Row