Go to file
2022-10-05 19:45:04 +05:00
.gitignore Update .gitignore 2022-09-18 12:48:49 +05:00
csv.go first commit 2022-09-18 12:43:16 +05:00
encodings.go Bugfixes 2022-09-21 21:36:40 +05:00
go.mod first commit 2022-09-18 12:43:16 +05:00
go.sum first commit 2022-09-18 12:43:16 +05:00
LICENSE Create LICENSE 2022-09-18 12:46:11 +05:00
main.go Bugfixes 2022-09-21 21:36:40 +05:00
make.bat first commit 2022-09-18 12:43:16 +05:00
README.md Bugfixes 2022-09-21 21:36:40 +05:00
sql.go Bugfixes 2022-09-21 21:36:40 +05:00
types.go Add support for NULL values 2022-10-05 19:45:04 +05:00
zip.go Bugfixes 2022-09-21 21:36:40 +05:00

csv2db

Bulk CSV files uploader into Microsoft SQL Server.

Usage

Usage:
  csv2db [OPTIONS]

Application Options:
      /filepath:                CSV file path
      /server:                  server address (default: 127.0.0.1)
      /database:                database name
      /table:                   table name in schema.name format
      /fields:                  field types in [sifdt ] format
      /comma:[,|;|t]            CSV file comma character (default: ,)
      /create                   create table
      /overwrite                overwrite existing table
      /encoding:[utf8|win1251]  CSV file charset (default: utf8)
      /skiprows:                number of rows to skip
      /dateformat:              date format (Go style) (default: 02.01.2006)
      /timestampformat:         timestamp format  (Go style) (default: 02.01.2006 15:04:05)
      /unknowncolumnnames       insert to table with unknown column names

Build

Use make.bat file to build csv2db.exe executable.