mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
In case selector's from clause has *Selector instead of *SelectTable, TableName() function (used for column checking) will panic. Instead, return selector's alias which is useful if the query returns a table with the same schema as some entity. Essentially, this allows materialized views to reuse the same entity code as long as columns are matching.
76 KiB
76 KiB