csv2sql icon indicating copy to clipboard operation
csv2sql copied to clipboard

Dynamically infer varchar column name

Open Arp-G opened this issue 1 year ago • 1 comments

We must dynamically infer the column's varchar size by finding the max data size in that column. So the varchar_limit the user specifies must only be used to decide when to switch from varchar to text.

Helps in fixing: https://github.com/Arp-G/csv2sql/issues/25

Also contains some minor cleanup and fixes.

Arp-G avatar Oct 28 '22 14:10 Arp-G

for empty columns set varchar(1)

Arp-G avatar Oct 29 '22 06:10 Arp-G