Database.execute

Execute a SQL statement from a file that takes a model parameter

Parameters

T

type to map parameters to

path

path to SQL file

model T

model to map parameters to

Examples

class Model
{
    int id;
    @(bind("name")) string name;
}
auto model = new Model();
model.name = "value";
database.execute!(Model, "queries/statement.sql", model);

Meta