Execute a SQL statement from a file that takes a model parameter
type to map parameters to
path to SQL file
model to map parameters to
class Model { int id; @(bind("name")) string name; } auto model = new Model(); model.name = "value"; database.execute!(Model, "queries/statement.sql", model);
See Implementation
Execute a SQL statement from a file that takes a model parameter