You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using nested queries in FROM clause, in order to be able to rely on column names provided by bob's models (aliased by default with "schema.table_name") we have to provide the alias to As() method for the nested query. If the Alias() method is provided, we will be able to alias nested queries automatically, based on the table used in the FROM clause of the nested query.
In our project, we could benefit from the possibility of retrieving the alias field from the View structure.
The simple method like
func (v *View[T, Tslice]) Alias() string { return v.alias }
would do the trick.
If you approve the proposition, I will be eager to create a pull request.
The text was updated successfully, but these errors were encountered: