Update README usage

This commit is contained in:
nxshock 2022-10-11 20:39:47 +05:00
parent 6975794cad
commit a984af79d0

View File

@ -5,23 +5,30 @@ Bulk CSV files uploader into Microsoft SQL Server.
## Usage ## Usage
``` ```
Usage: NAME:
csv2db [OPTIONS] csv2db.exe - bulk CSV files uploader into Microsoft SQL Server
Application Options: USAGE:
/filepath: CSV file path csv2db.exe [global options] [arguments...]
/server: server address (default: 127.0.0.1)
/database: database name VERSION:
/table: table name in schema.name format 0.1.1
/fields: field types in [sifdt ] format
/comma:[,|;|t] CSV file comma character (default: ,) GLOBAL OPTIONS:
/create create table --comma value CSV file comma character (use 't' for tabs) (default: ",")
/overwrite overwrite existing table --create create table (default: false)
/encoding:[utf8|win1251] CSV file charset (default: utf8) --database value database name
/skiprows: number of rows to skip --dateformat value date format (Go style) (default: "02.01.2006")
/dateformat: date format (Go style) (default: 02.01.2006) --encoding value CSV file charset ("utf8", "win1251") (default: "utf8")
/timestampformat: timestamp format (Go style) (default: 02.01.2006 15:04:05) --fields value list of field types in [sifdt ]+ format
/unknowncolumnnames insert to table with unknown column names --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 ## Build