Go to file
2023-01-13 22:21:28 +05:00
.gitignore Update .gitignore 2022-09-18 12:48:49 +05:00
consts.go Fix database connection and default vales issues 2022-10-11 18:03:15 +05:00
csv.go Switch to urfave/cli app structure 2022-10-09 17:23:59 +05:00
encodings.go Bugfixes 2022-09-21 21:36:40 +05:00
go.mod Switch to urfave/cli app structure 2022-10-09 17:23:59 +05:00
go.sum Switch to urfave/cli app structure 2022-10-09 17:23:59 +05:00
LICENSE Create LICENSE 2022-09-18 12:46:11 +05:00
main.go Add table name validation 2023-01-13 22:21:28 +05:00
make.bat first commit 2022-09-18 12:43:16 +05:00
README.md Update README usage 2022-10-11 20:39:47 +05:00
sql.go Switch to urfave/cli app structure 2022-10-09 17:23:59 +05:00
types.go Switch to urfave/cli app structure 2022-10-09 17:23:59 +05:00
zip.go Switch to urfave/cli app structure 2022-10-09 17:23:59 +05:00

csv2db

Bulk CSV files uploader into Microsoft SQL Server.

Usage

NAME:
   csv2db.exe - bulk CSV files uploader into Microsoft SQL Server

USAGE:
   csv2db.exe [global options] [arguments...]

VERSION:
   0.1.1

GLOBAL OPTIONS:
   --comma value            CSV file comma character (use 't' for tabs) (default: ",")
   --create                 create table (default: false)
   --database value         database name
   --dateformat value       date format (Go style) (default: "02.01.2006")
   --encoding value         CSV file charset ("utf8", "win1251") (default: "utf8")
   --fields value           list of field types in [sifdt ]+ format
   --filepath value         CSV file path
   --overwrite              overwrite existing table (default: false)
   --server value           database server address (default: "127.0.0.1")
   --skiprows value         number of rows to skip before read CSV file header (default: 0)
   --table value            table name in schema.name format
   --timestampformat value  timestamp format (Go style) (default: "02.01.2006 15:04:05")
   --unknowncolumnnames     insert to table with unknown column names (default: false)
   --version, -v            print the version (default: false)

Build

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