import sqlbuilder.uda;
import sqlbuilder.dialect.mysql;
import sqlbuilder.dataset;
@tableName("trec") static struct TableRecord
{
int id;
}
DataSet!TableRecord ds;
assert(select(ds).where(ds.id, " = ", 5.param).sql ==
"SELECT `trec`.* FROM `trec` WHERE (`trec`.`id` = ?)");
Tag your structure to provide an alternative table name. Without this, the struct's name is used as the table name.