Skip to content

Commit

Permalink
💚 (testdata-from-ddl) fix sorting storing columns
Browse files Browse the repository at this point in the history
  • Loading branch information
iwata committed Mar 27, 2024
1 parent 20dd464 commit 0f608ba
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 33 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,16 @@ testdata/customtypes:
$(YOBIN) $(SPANNER_PROJECT_NAME) $(SPANNER_INSTANCE_NAME) $(SPANNER_DATABASE_NAME) --custom-types-file test/testdata/custom_column_types.yml --out test/testmodels/customtypes/

testdata-from-ddl:
$(MAKE) -j4 testdata-from-ddl/default testdata-from-ddl/customtypes testdata-from-ddl/single
$(MAKE) -j4 testdata-from-ddl/default testdata-from-ddl/with-underscores testdata-from-ddl/customtypes testdata-from-ddl/single

testdata-from-ddl/default:
rm -rf test/testmodels/default && mkdir -p test/testmodels/default
$(YOBIN) generate ./test/testdata/schema.sql --from-ddl --package models --out test/testmodels/default/

testdata-from-ddl/with-underscores:
rm -rf test/testmodels/underscores && mkdir -p test/testmodels/underscores
$(YOBIN) generate ./test/testdata/schema.sql --from-ddl --package models --with-underscores --out test/testmodels/underscores/

testdata-from-ddl/single:
rm -rf test/testmodels/single && mkdir -p test/testmodels/single
$(YOBIN) generate ./test/testdata/schema.sql --from-ddl --out test/testmodels/single/single_file.go --single-file
Expand Down
16 changes: 8 additions & 8 deletions test/testmodels/customtypes/compositeprimarykey.yo.go

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

16 changes: 8 additions & 8 deletions test/testmodels/default/compositeprimarykey.yo.go

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

16 changes: 8 additions & 8 deletions test/testmodels/single/single_file.go

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

16 changes: 8 additions & 8 deletions test/testmodels/underscores/composite_primary_key.yo.go

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

0 comments on commit 0f608ba

Please sign in to comment.