Database.list

Execute a SQL statment that returns multiple rows

Parameters

T

type to map columns to

sql string

SQL statement to execute

Return Value

Type: T[]

new array of T with the fields for each T mapped to columns

Examples

auto models = database.list!(Model)("select * from models;");

Meta