mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
examples: run codegen for examples
This commit is contained in:
@@ -540,6 +540,9 @@ func (fq *FileQuery) sqlQuery(ctx context.Context) *sql.Selector {
|
||||
selector = fq.sql
|
||||
selector.Select(selector.Columns(columns...)...)
|
||||
}
|
||||
if fq.unique != nil && *fq.unique {
|
||||
selector.Distinct()
|
||||
}
|
||||
for _, p := range fq.predicates {
|
||||
p(selector)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user