Skip to content

Commit 17fea60

Browse files
qanghaakyleconroy
authored andcommitted
remove bonuses to special table name list
1 parent 3f67f73 commit 17fea60

File tree

17 files changed

+7
-146
lines changed

17 files changed

+7
-146
lines changed

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

Lines changed: 0 additions & 4 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: 0 additions & 27 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: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,4 @@ SELECT * FROM product_meta;
1111
SELECT * FROM calories;
1212

1313
/* name: GetProductMetadata :many */
14-
SELECT * FROM product_metadata;
15-
16-
/* name: GetBonuses :many */
17-
SELECT * FROM bonuses;
14+
SELECT * FROM product_metadata;

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

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

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

Lines changed: 0 additions & 4 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: 0 additions & 24 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: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,4 @@ SELECT * FROM product_meta;
1111
SELECT * FROM calories;
1212

1313
-- name: GetProductMetadata :many
14-
SELECT * FROM product_metadata;
15-
16-
-- name: GetBonuses :many
17-
SELECT * FROM bonuses;
14+
SELECT * FROM product_metadata;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ 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);
5+
CREATE TABLE product_metadata (id text not null);

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

Lines changed: 0 additions & 4 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: 0 additions & 24 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: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,4 @@ SELECT * FROM product_meta;
1111
SELECT * FROM calories;
1212

1313
-- name: GetProductMetadata :many
14-
SELECT * FROM product_metadata;
15-
16-
-- name: GetBonuses :many
17-
SELECT * FROM bonuses;
14+
SELECT * FROM product_metadata;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ 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);
5+
CREATE TABLE product_metadata (id text not null);

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

Lines changed: 0 additions & 4 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: 0 additions & 27 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: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,4 @@ SELECT * FROM product_meta;
1111
SELECT * FROM calories;
1212

1313
-- name: GetProductMetadata :many
14-
SELECT * FROM product_metadata;
15-
16-
-- name: GetBonuses :many
17-
SELECT * FROM bonuses;
14+
SELECT * FROM product_metadata;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ 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);
5+
CREATE TABLE product_metadata (id text not null);

internal/inflection/singular.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ func Singular(s SingularParams) string {
4444
return "wave"
4545
}
4646

47-
if strings.ToLower(s.Name) == "bonuses" {
48-
return "bonus"
49-
}
50-
5147
if strings.ToLower(s.Name) == "metadata" {
5248
return "metadata"
5349
}

0 commit comments

Comments
 (0)