entc/gen/template: allow nested template access Receiver (#4354)

This commit is contained in:
Giau. Tran Minh
2025-03-17 17:16:05 +07:00
committed by GitHub
parent 6109670fa2
commit 088bfd75ad
17 changed files with 43 additions and 34 deletions

View File

@@ -8,7 +8,7 @@ in the LICENSE file in the root directory of this source tree.
{{ define "dialect/sql/group" }}
{{ $builder := pascal $.Scope.Builder }}
{{ $receiver := receiver $builder }}
{{ $receiver := $.Scope.Receiver }}
func ({{ $receiver }} *{{ $builder }}) sqlScan(ctx context.Context, root *{{ $.QueryName }}, v any) error {
selector := root.sqlQuery(ctx).Select()