Skip to content

Commit

Permalink
update key name
Browse files Browse the repository at this point in the history
  • Loading branch information
DoubleDi committed Feb 25, 2024
1 parent 12a1b11 commit a733cce
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions v2/module/builtin/templates/operation.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func ({{ $short }} *{{ .Name }}) UpdateColumns(ctx context.Context, cols ...stri

// Find{{ .Name }} gets a {{ .Name }} by primary key
func Find{{ .Name }}(ctx context.Context, db YODB{{ goParams .PrimaryKeyFields true true }}) (*{{ .Name }}, error) {
key_ := spanner.Key{ {{ goEncodedParams .PrimaryKeyFields false }} }
row, err := db.ReadRow(ctx, "{{ $table }}", key_, {{ .Name }}Columns())
_key := spanner.Key{ {{ goEncodedParams .PrimaryKeyFields false }} }
row, err := db.ReadRow(ctx, "{{ $table }}", _key, {{ .Name }}Columns())
if err != nil {
return nil, newError("Find{{ .Name }}", "{{ $table }}", err)
}
Expand Down
4 changes: 2 additions & 2 deletions v2/test/testmodels/default/composite_primary_key.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/default/custom_composite_primary_key.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/default/custom_primitive_type.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/default/fereign_item.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/default/full_type.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/default/generated_column.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/default/inflection.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/default/item.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/default/max_length.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/default/snake_case.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/legacy_default/composite_primary_key.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/legacy_default/custom_primitive_type.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/legacy_default/fereign_item.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/legacy_default/full_type.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/legacy_default/generated_column.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/legacy_default/inflection.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/legacy_default/item.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/legacy_default/max_length.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions v2/test/testmodels/legacy_default/snake_case.yo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a733cce

Please sign in to comment.