Database.list

Execute a SQL statement from a file that returns multiple rows

Parameters

T

type to map columns to

path

path to SQL file Returns new array of T with the fields for each T mapped to columns

Examples

auto models = database.list!(Model, "queries/statement.sql")();

Meta