selectTableDataIntoDbData

open fun <T : TabularData> selectTableDataIntoDbData(factory: () -> T): List<T>

Selects data from the database and fills a list with instances of the data class. The factory must produce an instance of a subclass, T of DbData. Subclasses of type DbData are data classes that have been configured to hold data from a named table from the database. See the documentation on DbData for further information. The resulting list of data is not connected to the database in any way.