getAliasForTable method
Returns the table alias for the main table being selected.
This implementation simply returns the tableAlias
property of the
SelectBuilderBase. If you need more complex alias resolution (e.g.,
for JOINs or subqueries), you would override this in subclasses to check
for specific table names and return the correct alias from a more
comprehensive tracking mechanism within your builder.
Implementation
String? getAliasForTable(String tableName) {
// For this base implementation, we only handle the main table's alias.
return tableName == primaryTableName ? tableAlias : null;
}