Database.execute

Execute a SQL statement that takes a model parameter

Parameters

T

type to map parameters to

sql string

SQL statement to execute

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)("insert into models(name) values(?(name));", model);

Meta