This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* this is a simple customisation for Slick Codegen which automatically | |
* generates wrapper class with field accessors for tables with more than 22 | |
* fields. | |
* Wrapper allows more convenient access to record fields returned from query | |
* | |
* class ContactWrapper(private val row: ContactRow) { | |
// addressing HList by index is very slow, let's convert it to vector | |
private lazy val values = row.toList.toVector |