Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table "bonuses" and "product_metadata" incorrectly generates model name. #3552

Open
qanghaa opened this issue Aug 18, 2024 · 0 comments · May be fixed by #3553
Open

Table "bonuses" and "product_metadata" incorrectly generates model name. #3552

qanghaa opened this issue Aug 18, 2024 · 0 comments · May be fixed by #3553

Comments

@qanghaa
Copy link

qanghaa commented Aug 18, 2024

Version

1.27.0

What happened?

I have 2 tables with name like bonuses, product_metadata when I using sqlc to generate models. The struct name generated seems unexpected

  • table bonuses => struct name Bonuse
  • table product_metadata => struct name ProductMetaDatum

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

https://play.sqlc.dev/p/ca68c99a363589485952b84710b4db5ed101bb93e0efcc0009204ff778cf0038

What operating system are you using?

Linux

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant