Skip to content

Commit 89c110b

Browse files
committed
fix incorrect generate model names for "bonuses" and "metadata"
1 parent 1e6902f commit 89c110b

File tree

21 files changed

+347
-4
lines changed

21 files changed

+347
-4
lines changed

internal/endtoend/testdata/inflection/mysql/go/models.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/inflection/mysql/go/query.sql.go

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/inflection/mysql/query.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ SELECT * FROM product_meta;
99

1010
/* name: ListCalories :many */
1111
SELECT * FROM calories;
12+
13+
/* name: GetProductMetadata :many */
14+
SELECT * FROM product_metadata;
15+
16+
/* name: GetBonuses :many */
17+
SELECT * FROM bonuses;

internal/endtoend/testdata/inflection/mysql/schema.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ CREATE TABLE campus (id text not null);
22
CREATE TABLE students (id text not null);
33
CREATE TABLE product_meta (id text not null);
44
CREATE TABLE calories (id text not null);
5+
CREATE TABLE product_metadata (id text not null);
6+
CREATE TABLE bonuses (id text not null);
57

internal/endtoend/testdata/inflection/postgresql/pgx/v4/go/models.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/inflection/postgresql/pgx/v4/go/query.sql.go

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/inflection/postgresql/pgx/v4/query.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ SELECT * FROM product_meta;
99

1010
-- name: ListCalories :many
1111
SELECT * FROM calories;
12+
13+
-- name: GetProductMetadata :many
14+
SELECT * FROM product_metadata;
15+
16+
-- name: GetBonuses :many
17+
SELECT * FROM bonuses;

internal/endtoend/testdata/inflection/postgresql/pgx/v4/schema.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ CREATE TABLE campus (id text not null);
22
CREATE TABLE students (id text not null);
33
CREATE TABLE product_meta (id text not null);
44
CREATE TABLE calories (id text not null);
5-
5+
CREATE TABLE product_metadata (id text not null);
6+
CREATE TABLE bonuses (id text not null);

internal/endtoend/testdata/inflection/postgresql/pgx/v5/go/models.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/inflection/postgresql/pgx/v5/go/query.sql.go

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/inflection/postgresql/pgx/v5/query.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ SELECT * FROM product_meta;
99

1010
-- name: ListCalories :many
1111
SELECT * FROM calories;
12+
13+
-- name: GetProductMetadata :many
14+
SELECT * FROM product_metadata;
15+
16+
-- name: GetBonuses :many
17+
SELECT * FROM bonuses;

internal/endtoend/testdata/inflection/postgresql/pgx/v5/schema.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ CREATE TABLE campus (id text not null);
22
CREATE TABLE students (id text not null);
33
CREATE TABLE product_meta (id text not null);
44
CREATE TABLE calories (id text not null);
5-
5+
CREATE TABLE product_metadata (id text not null);
6+
CREATE TABLE bonuses (id text not null);

internal/endtoend/testdata/inflection/postgresql/stdlib/go/models.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/inflection/postgresql/stdlib/go/query.sql.go

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/inflection/postgresql/stdlib/query.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ SELECT * FROM product_meta;
99

1010
-- name: ListCalories :many
1111
SELECT * FROM calories;
12+
13+
-- name: GetProductMetadata :many
14+
SELECT * FROM product_metadata;
15+
16+
-- name: GetBonuses :many
17+
SELECT * FROM bonuses;

internal/endtoend/testdata/inflection/postgresql/stdlib/schema.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ CREATE TABLE campus (id text not null);
22
CREATE TABLE students (id text not null);
33
CREATE TABLE product_meta (id text not null);
44
CREATE TABLE calories (id text not null);
5-
5+
CREATE TABLE product_metadata (id text not null);
6+
CREATE TABLE bonuses (id text not null);

0 commit comments

Comments
 (0)