Hi, I'm trying to parse a CSV file and automatically create a table for it using SQL commands. The first line in the CSV gives the column headers. But I need to infer the column type for each one.
Is there any function in Ruby that would find the type of the content in each field. For example, the CSV line:
"12012", "Test", "1233.22", "12:21:22", "10/10/2009"
should produce the types like
['integer', 'string', 'float', 'time', 'date']
Thanks!