Versions in this module Expand all Collapse all v0 v0.4.12 Dec 12, 2023 Changes in this version + const Date + const DefaultChunkSize + const Float + const Int + const String + const Unknown + var DateFormat = "2006-01-02 15:04:05" + var ErrTooManyFields = errors.New("too many fields") + type Column struct + DataType string + Length int + Name string + Nullable bool + Precision int + Scale int + Type Type + func CreateTable(ctx context.Context, db *sql.DB, tbl string, rows <-chan dbcsv.Row, ...) ([]Column, error) + func (c Column) FromString(ss []string) (interface{}, error) + type Config struct + ChunkSize int + Concurrency int + Copy string + ForceString bool + JustPrint io.Writer + LobSource bool + Logger *slog.Logger + Tablespace string + Truncate bool + func (cfg Config) Close() error + func (cfg Config) Load(ctx context.Context, db *sql.DB, tbl, src string, fields []string) error + func (cfg Config) Open(ctx context.Context, db *sql.DB, fn string) (err error) + type Type uint8 + func (t Type) String() string