Specify a different column name for a field. By default, the field's name is used.
import sqlbuilder.dataset; import sqlbuilder.uda; import sqlbuilder.dialect.mysql; static struct table { @colName("password_hash") string pwHash; } DataSet!table ds; assert(select(ds.pwHash).sql == "SELECT `table`.`password_hash` FROM `table`");
See Implementation
Specify a different column name for a field. By default, the field's name is used.