getWhere<TDef extends ITableDefinition> function
'where' clause
Implementation
SqlRequest getWhere<TDef extends ITableDefinition>(
Where Function(TDef e)? where,
TDef tableDefinition,
) {
if (where != null) {
var whereObj = where(tableDefinition);
var whereClauseCalculator = WhereClauseCalculator();
return whereClauseCalculator //
.getWhereFromCommand(whereObj)
.prependSql("where ");
} else {
return SqlRequest("", {});
}
}