type to map parameters and columns to
path to SQL file
model to map parameters and columns to
new array of T with the fields for each T mapped to columns
class Model { int id; @(bind("name")) string name; } auto model = new Model(); model.name = "value"; auto models = database.list!(Model, "queries/statement.sql")(model);
Execute a SQL statement from a file that takes a model parameter and returns many rows