entc/gen: avoid conflict between package and receiver names (#3563)

This commit is contained in:
Ariel Mashraki
2023-05-25 14:45:57 +03:00
committed by GitHub
parent d7b3a6c4f4
commit 633d021f48
57 changed files with 3611 additions and 116 deletions

View File

@@ -8,7 +8,7 @@ in the LICENSE file in the root directory of this source tree.
{{ define "dialect/sql/delete" }}
{{ $builder := pascal $.Scope.Builder }}
{{ $receiver := receiver $builder }}
{{ $receiver := $.Scope.Receiver }}
{{ $mutation := print $receiver ".mutation" }}
func ({{ $receiver}} *{{ $builder }}) sqlExec(ctx context.Context) (int, error) {