mirror of
https://github.com/nxshock/csv2db.git
synced 2024-11-27 03:31:00 +05:00
Allow lazy quotes
This commit is contained in:
parent
22e7c395ec
commit
6a31bda929
1
main.go
1
main.go
@ -82,6 +82,7 @@ func processReader(r io.Reader) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reader := csv.NewReader(bufReader)
|
reader := csv.NewReader(bufReader)
|
||||||
|
reader.LazyQuotes = true
|
||||||
reader.TrimLeadingSpace = false
|
reader.TrimLeadingSpace = false
|
||||||
reader.FieldsPerRecord = len(opts.FieldTypes)
|
reader.FieldsPerRecord = len(opts.FieldTypes)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user