Suppose I am using SQLAlchemy to upload a generic .csv file to an mssql server.
How can I infer the type of each column? It seems that one has to declare a column explicitly eg {'myvar' : Column(Integer)}. Is there a way for SQLAlchemy, or some other library, to infer the datatype of each column by itself?
VB has the function "TransferText" which can do just that , but I want to do this in python.
YourClassthen you can checkYourClass.your_attribute.type.python_type