Dynamically create case class
问题 I am using a csv library that takes a case class and turns it into rows for me to read. The syntax is pretty close to File(path).asCsvReader[caseClass] . Link to library here However the problem is that I want to generate my case class from the tables in my database. I can receive the tables in my database and the types that the columns are (Int, Long, Double, String etc) but I do not know how to dynamically create a case class with that data since I do not know the information at compile