Dynamically create case class
<p>I am using a csv library that takes a case class and turns it into rows for me to read.</p>

<p>The syntax is pretty close to <code>File(path).asCsvReader[caseClass]</code>.
Link to library <a href="https://github.com/nrinaudo/kantan.csv" rel="nofollow noreferrer" title="here">here</a></p>

<p>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 time.</p>

<p>It is because of this that I can't use macros either since I do not know the table data at the compile time of the macro.</p>

<p>So how would I go about dynamically creating this case class once I receive the table data and then passing that case class to the csv library?</p>