Possible Duplicate:
Generate table schema inspecting Excel(CSV) and import data
I'm working on a tool to automatically create a MySQL table based on input.
For example.
input
Y|abc|123|1.12|2012-12-20 00:00:00
output
CREATE TABLE MyTable (
is_enabed char(1),
call_sign varchar(8),
facility_id tinyint(4),
bounds decimal(4,2)
created_time datetime
) ENGINE=MyISAM DEFAULT CHARSET=latin1
I have a quasi working prototype right now in Python. Before I delve deeper I would like to see if there are similar projects (free, open-source) already in existence. If so, my efforts would probably be better spent researching that project rather than tirelessly re-inventing the wheel.