2022-09-18 12:44:10 +05:00
|
|
|
# csv2db
|
2022-09-18 12:43:16 +05:00
|
|
|
|
|
|
|
Bulk CSV files uploader into Microsoft SQL Server.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
Usage:
|
|
|
|
csv2db [OPTIONS]
|
|
|
|
|
|
|
|
Application Options:
|
2022-09-21 21:36:40 +05:00
|
|
|
/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
|
2022-09-18 12:43:16 +05:00
|
|
|
```
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
2022-09-21 21:36:40 +05:00
|
|
|
Use `make.bat` file to build `csv2db.exe` executable.
|